diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-03 20:16:18 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-03 20:16:18 +0800 |
commit | 9dd24ffd51f0ffe2a48474dc7a2bd5f50f978b5d (patch) | |
tree | c2b6cb06a5b2cdbb8702d50da0dc1a02be32c1b0 /zsh | |
parent | e892b3a63f95527b2b3b038f3c9b61400efae0af (diff) |
update
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/_vp.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,7 +1,7 @@ | |||
1 | #compdef vp | 1 | #compdef vp |
2 | 2 | ||
3 | function _vp() { | 3 | function _vp() { |
4 | compadd -S '' $(cd ~/blog/content/posts && ls ${words[2]}*) | 4 | compadd -S '' $(find ~/blog/content -name '*.md' | grep -o '[^/]*$') |
5 | } | 5 | } |
6 | 6 | ||
7 | _vp | 7 | _vp |