diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-07-05 10:30:24 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-07-05 10:30:24 +0800 |
| commit | 1dbe682f99d170236ca9b04ae68c9a082ab80d60 (patch) | |
| tree | 4c6b406c1e336bce06dcf3dc4cb43143478d975f /zsh | |
| parent | f3050ed46a1813b30a0d29e8a5397e1243f20e62 (diff) | |
update
Diffstat (limited to 'zsh')
| -rw-r--r-- | zsh/_wg.zsh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zsh/_wg.zsh b/zsh/_wg.zsh new file mode 100644 index 0000000..e914092 --- /dev/null +++ b/zsh/_wg.zsh | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | #compdef wg | ||
| 2 | |||
| 3 | function _wg() { | ||
| 4 | compadd -S '' $(cd ~/vimwiki && ls ${words[2]}*) | ||
| 5 | } | ||
| 6 | |||
| 7 | _wg | ||