diff options
-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' |