diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-06 18:05:48 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-06 18:05:48 +0800 |
commit | d215b920a109edaefc21fa60bb45e896ee23dcdf (patch) | |
tree | 863077699b47189a5370d24bea5f46fb181d4928 /alias | |
parent | 14d22cc3f08e42f4f254d3944186e11768eb9a3b (diff) |
Update
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -154,7 +154,7 @@ vp() { | |||
154 | # git | 154 | # git |
155 | unalias gc &> /dev/null # override zsh plugin alias | 155 | unalias gc &> /dev/null # override zsh plugin alias |
156 | gc() { | 156 | gc() { |
157 | git clone $1 && cd $(basename $1) | 157 | git clone $1 && cd $(basename ${1%.git}) |
158 | } | 158 | } |
159 | gc1() { | 159 | gc1() { |
160 | git clone --depth=1 $1 && cd $(basename $1) | 160 | git clone --depth=1 $1 && cd $(basename $1) |