aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-12-01 13:42:22 +0800
committertypebrook <typebrook@gmail.com>2019-12-01 13:42:22 +0800
commit33221b07ae2a49faedda57b165a1035bed0f1596 (patch)
treee4446addd22e3b6380486df9d33f5a45d406b66e /alias
parent2379e355db521240243e47f2f6b56ce3bc921dd1 (diff)
update
Diffstat (limited to 'alias')
-rw-r--r--alias9
1 files changed, 4 insertions, 5 deletions
diff --git a/alias b/alias
index 1d32fec..9b66b0e 100644
--- a/alias
+++ b/alias
@@ -80,11 +80,10 @@ _ranger-cd() {
80alias df='df -h' 80alias df='df -h'
81 81
82# git 82# git
83alias gc='git clone' 83alias gc > /dev/null && unalias gc
84alias gc1='git clone --depth=1' 84gc() { git clone $1 && cd $(basename $1) }
85gcg() { 85gc1() { git clone --depth=1 $1 && cd $(basename $1) }
86 git clone git@github.com:$1/$2.git 86gcg() { git clone git@github.com:$1/$2.git && cd $(basename $1) }
87}
88alias gls='git log -S' 87alias gls='git log -S'
89alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule 88alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule
90 89