summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
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