diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-07-12 10:57:41 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-07-12 10:57:41 +0800 |
commit | dfe4efc3fab02f1d64f94d59d0aa36ae74cb7b4f (patch) | |
tree | 9afde55a8eccbbfbd694fad759eeaaea5fb317d2 /zsh | |
parent | c37e12ae4e43225406ada75daf6480d32e22538b (diff) |
Update
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/_ssh.up | 7 | ||||
-rw-r--r-- | zsh/_vp.sh | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/zsh/_ssh.up b/zsh/_ssh.up new file mode 100644 index 0000000..4ac33d2 --- /dev/null +++ b/zsh/_ssh.up | |||
@@ -0,0 +1,7 @@ | |||
1 | #compdef ssh.up | ||
2 | |||
3 | function _ssh.up() { | ||
4 | compadd -S '' $(ssh vps find /home/pham/public -maxdepth 1 -type d | grep -o '[^/]*$') | ||
5 | } | ||
6 | |||
7 | _ssh.up | ||
@@ -1,7 +1,7 @@ | |||
1 | #compdef vp | 1 | #compdef vp |
2 | 2 | ||
3 | function _vp() { | 3 | function _vp() { |
4 | compadd -S '' $(find ~/blog/content -name '*.md' | grep -o '[^/]*$') | 4 | compadd -S '' $(ssh vps find /home/pham/blog/content -name '\*.md' | grep -o '[^/]*$') |
5 | } | 5 | } |
6 | 6 | ||
7 | _vp | 7 | _vp |