diff options
Diffstat (limited to 'zsh/_vp.sh')
-rw-r--r-- | zsh/_vp.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zsh/_vp.sh b/zsh/_vp.sh new file mode 100644 index 0000000..a740c0b --- /dev/null +++ b/zsh/_vp.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | #compdef vp | ||
2 | |||
3 | function _vp() { | ||
4 | compadd -S '' $(cd ~/blog/content/posts && ls ${words[2]}*) | ||
5 | } | ||
6 | |||
7 | _vp | ||