aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh/_ssh.up
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2022-11-09 18:29:32 +0800
committerHsieh Chin Fan <pham@topo.tw>2022-11-09 18:29:32 +0800
commitdc64bbea4febd95305c0c05755c80a77923e965a (patch)
treed0c89fd4a676720c3f850d2c3a7e3d50839f732e /zsh/_ssh.up
parentd3d0dac49f12f999a499a5aff52d8cda0b96c4ac (diff)
Update zsh completion
Diffstat (limited to 'zsh/_ssh.up')
-rw-r--r--zsh/_ssh.up6
1 files changed, 1 insertions, 5 deletions
diff --git a/zsh/_ssh.up b/zsh/_ssh.up
index 4ac33d2..af8a913 100644
--- a/zsh/_ssh.up
+++ b/zsh/_ssh.up
@@ -1,7 +1,3 @@
1#compdef ssh.up 1#compdef ssh.up
2 2
3function _ssh.up() { 3_arguments "1:filename:_files" "2:remote_paths:($(ssh vps find /home/pham/public -maxdepth 1 -type d | grep -o '[^/]*$'))"
4 compadd -S '' $(ssh vps find /home/pham/public -maxdepth 1 -type d | grep -o '[^/]*$')
5}
6
7_ssh.up