diff options
author | axel <axel@liljencrantz.se> | 2006-02-17 20:13:39 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-02-17 20:13:39 +1000 |
commit | 343cafef346543282b5b6e825bc8f9dd10028a48 (patch) | |
tree | 1bcf221ecb525c7aeadc8325e7b780d3656e544b /share/completions/scp.fish | |
parent | 95a01f3c8f15034433ffce368d8f2d13d925139c (diff) |
Redo installation file structure, move lots of things to $PREFIX/share/fish
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
Diffstat (limited to 'share/completions/scp.fish')
-rw-r--r-- | share/completions/scp.fish | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/share/completions/scp.fish b/share/completions/scp.fish new file mode 100644 index 00000000..111a7300 --- /dev/null +++ b/share/completions/scp.fish @@ -0,0 +1,35 @@ +# +# Load common ssh options +# + +__fish_complete_ssh scp + +# +# scp specific completions +# + +complete -c scp -d Hostname -a " + +( + #Find a suitable hostname from the knownhosts files + cat ~/.ssh/known_hosts{,2} ^/dev/null|cut -d ' ' -f 1| cut -d , -f 1 +): + +( + #Prepend any username specified in the completion to the hostname + echo (commandline -ct)|sed -ne 's/\(.*@\).*/\1/p' +)( + cat ~/.ssh/known_hosts{,2} ^/dev/null|cut -d ' ' -f 1| cut -d , -f 1 +): + +(__fish_print_users)@ + +" +complete -c scp -s B -d (_ "Batch mode") +complete -c scp -s l -x -d (_ "Bandwidth limit") +complete -c scp -s P -x -d (_ "Port") +complete -c scp -s p -d (_ "Preserves modification times, access times, and modes from the original file") +complete -c scp -s q -d (_ "Do not display progress bar") +complete -c scp -s r -d (_ "Recursively copy") +complete -c scp -s S -d (_ "Encyption program") + |