aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh/_ssh.up
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-07-12 10:57:41 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-07-12 10:57:41 +0800
commitdfe4efc3fab02f1d64f94d59d0aa36ae74cb7b4f (patch)
tree9afde55a8eccbbfbd694fad759eeaaea5fb317d2 /zsh/_ssh.up
parentc37e12ae4e43225406ada75daf6480d32e22538b (diff)
Update
Diffstat (limited to 'zsh/_ssh.up')
-rw-r--r--zsh/_ssh.up7
1 files changed, 7 insertions, 0 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
3function _ssh.up() {
4 compadd -S '' $(ssh vps find /home/pham/public -maxdepth 1 -type d | grep -o '[^/]*$')
5}
6
7_ssh.up