summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-05-02 19:47:45 -0500
committerJesse Luehrs <doy@tozt.net>2010-05-02 19:47:45 -0500
commit48ff366ac86182f2d2e9fd2ee422fcc150ca7c13 (patch)
tree96df2bbcfd5a7b664de9e127b2da352f8c702fdd /bashrc
parent2bbd3cea2c6a638f1d653b78f5d1286d866855e0 (diff)
downloadconf-48ff366ac86182f2d2e9fd2ee422fcc150ca7c13.tar.gz
conf-48ff366ac86182f2d2e9fd2ee422fcc150ca7c13.zip
allow cloning my private repositories with this alias
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc6
1 files changed, 5 insertions, 1 deletions
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