diff options
author | typebrook <typebrook@gmail.com> | 2019-12-01 13:42:22 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-12-01 13:42:22 +0800 |
commit | 33221b07ae2a49faedda57b165a1035bed0f1596 (patch) | |
tree | e4446addd22e3b6380486df9d33f5a45d406b66e /alias | |
parent | 2379e355db521240243e47f2f6b56ce3bc921dd1 (diff) |
update
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -80,11 +80,10 @@ _ranger-cd() { | |||
80 | alias df='df -h' | 80 | alias df='df -h' |
81 | 81 | ||
82 | # git | 82 | # git |
83 | alias gc='git clone' | 83 | alias gc > /dev/null && unalias gc |
84 | alias gc1='git clone --depth=1' | 84 | gc() { git clone $1 && cd $(basename $1) } |
85 | gcg() { | 85 | gc1() { git clone --depth=1 $1 && cd $(basename $1) } |
86 | git clone git@github.com:$1/$2.git | 86 | gcg() { git clone git@github.com:$1/$2.git && cd $(basename $1) } |
87 | } | ||
88 | alias gls='git log -S' | 87 | alias gls='git log -S' |
89 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule | 88 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule |
90 | 89 | ||