diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-13 10:48:02 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-13 10:48:02 +0800 |
commit | 0c40b80f6b8c07d3c4c5d107f0dae3cb31cfabaf (patch) | |
tree | 916e15d53af8dba58a5837de081b86bbbed214ae | |
parent | a4355d87d95fd0b127f1c7108d8520755d161904 (diff) |
Update
-rw-r--r-- | alias | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -177,12 +177,9 @@ vp() { | |||
177 | 177 | ||
178 | # git | 178 | # git |
179 | unalias gc &> /dev/null # override zsh plugin alias | 179 | unalias gc &> /dev/null # override zsh plugin alias |
180 | gc() { | 180 | gc() { git clone $1 && cd $(basename ${1%.git}); } |
181 | git clone $1 && cd $(basename ${1%.git}) | 181 | gc1() { git clone --depth=1 $1 && cd $(basename $1); } |
182 | } | 182 | gcv() { gc topo:$1; } |
183 | gc1() { | ||
184 | git clone --depth=1 $1 && cd $(basename $1) | ||
185 | } | ||
186 | alias gls='git log -S' | 183 | alias gls='git log -S' |
187 | alias cdgg='cd $(git rev-parse --show-toplevel)' | 184 | alias cdgg='cd $(git rev-parse --show-toplevel)' |
188 | alias cdgw='cdgg && cd .github/workflows' | 185 | alias cdgw='cdgg && cd .github/workflows' |