aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh/_cdg.zsh
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-06-27 12:36:06 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-06-27 12:36:06 +0800
commit134ee092ba3b8d00e46884a5cd422c2bc5dc33eb (patch)
tree53e96502a08638e8115c9b94215f311a7a28f95d /zsh/_cdg.zsh
parent8cfb586fd69ecbce528f07889f1bd12a251c4ca0 (diff)
update
Diffstat (limited to 'zsh/_cdg.zsh')
-rw-r--r--zsh/_cdg.zsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/zsh/_cdg.zsh b/zsh/_cdg.zsh
new file mode 100644
index 0000000..fe7e26b
--- /dev/null
+++ b/zsh/_cdg.zsh
@@ -0,0 +1,7 @@
1#compdef cdg
2
3function _cdg() {
4 compadd -S '/' $(cd ~/git && ls -d ${words[2]}*)
5}
6
7_cdg