aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-04-13 10:48:02 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-04-13 10:48:02 +0800
commit0c40b80f6b8c07d3c4c5d107f0dae3cb31cfabaf (patch)
tree916e15d53af8dba58a5837de081b86bbbed214ae /alias
parenta4355d87d95fd0b127f1c7108d8520755d161904 (diff)
Update
Diffstat (limited to 'alias')
-rw-r--r--alias9
1 files changed, 3 insertions, 6 deletions
diff --git a/alias b/alias
index 446eb99..80eee75 100644
--- a/alias
+++ b/alias
@@ -177,12 +177,9 @@ vp() {
177 177
178# git 178# git
179unalias gc &> /dev/null # override zsh plugin alias 179unalias gc &> /dev/null # override zsh plugin alias
180gc() { 180gc() { git clone $1 && cd $(basename ${1%.git}); }
181 git clone $1 && cd $(basename ${1%.git}) 181gc1() { git clone --depth=1 $1 && cd $(basename $1); }
182} 182gcv() { gc topo:$1; }
183gc1() {
184 git clone --depth=1 $1 && cd $(basename $1)
185}
186alias gls='git log -S' 183alias gls='git log -S'
187alias cdgg='cd $(git rev-parse --show-toplevel)' 184alias cdgg='cd $(git rev-parse --show-toplevel)'
188alias cdgw='cdgg && cd .github/workflows' 185alias cdgw='cdgg && cd .github/workflows'