aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-04-06 18:05:48 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-04-06 18:05:48 +0800
commitd215b920a109edaefc21fa60bb45e896ee23dcdf (patch)
tree863077699b47189a5370d24bea5f46fb181d4928
parent14d22cc3f08e42f4f254d3944186e11768eb9a3b (diff)
Update
-rw-r--r--alias2
1 files changed, 1 insertions, 1 deletions
diff --git a/alias b/alias
index 07c9cbf..3ab5478 100644
--- a/alias
+++ b/alias
@@ -154,7 +154,7 @@ vp() {
154# git 154# git
155unalias gc &> /dev/null # override zsh plugin alias 155unalias gc &> /dev/null # override zsh plugin alias
156gc() { 156gc() {
157 git clone $1 && cd $(basename $1) 157 git clone $1 && cd $(basename ${1%.git})
158} 158}
159gc1() { 159gc1() {
160 git clone --depth=1 $1 && cd $(basename $1) 160 git clone --depth=1 $1 && cd $(basename $1)