diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-06-19 15:35:37 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-06-19 15:35:37 +0800 |
commit | 66202187b24e4871b1f9122b1300930f84d4359e (patch) | |
tree | 70ca8f1de05364ee637d85cf854102fc7264bb7e | |
parent | 1dad0ab340e144b9be673d1924a2722bd5fe005f (diff) |
Update
-rw-r--r-- | alias | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -281,7 +281,7 @@ vp() { | |||
281 | 281 | ||
282 | # __GIT__ | 282 | # __GIT__ |
283 | unalias gc &> /dev/null # override zsh plugin alias | 283 | unalias gc &> /dev/null # override zsh plugin alias |
284 | gc() { git clone $@ && cd $(basename ${1%.git}); } | 284 | gc() { git clone $@; if [ $# == 1 ]; then cd $(basename ${1%.git}); fi } |
285 | gc1() { git clone --depth=1 $1 && cd $(basename $1); } | 285 | gc1() { git clone --depth=1 $1 && cd $(basename $1); } |
286 | gcv() { gc vps:$1; } | 286 | gcv() { gc vps:$1; } |
287 | alias gls='git log -S' | 287 | alias gls='git log -S' |