diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-05-02 19:47:45 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-05-02 19:47:45 -0500 |
commit | 48ff366ac86182f2d2e9fd2ee422fcc150ca7c13 (patch) | |
tree | 96df2bbcfd5a7b664de9e127b2da352f8c702fdd /bashrc | |
parent | 2bbd3cea2c6a638f1d653b78f5d1286d866855e0 (diff) | |
download | conf-48ff366ac86182f2d2e9fd2ee422fcc150ca7c13.tar.gz conf-48ff366ac86182f2d2e9fd2ee422fcc150ca7c13.zip |
allow cloning my private repositories with this alias
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |