From 48ff366ac86182f2d2e9fd2ee422fcc150ca7c13 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 2 May 2010 19:47:45 -0500 Subject: allow cloning my private repositories with this alias --- bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index d2a9a6d..a6f4201 100644 --- a/bashrc +++ b/bashrc @@ -149,7 +149,11 @@ function pdfcat { gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$out $* } function github-clone { - git clone git://github.com/$1/$2.git + if [[ -z $2 ]]; then + git clone git@github.com:$USER/$1.git + else + git clone git://github.com/$1/$2.git + fi } function mod { yes | module-setup $1 -- cgit v1.2.3-54-g00ecf