diff options
author | 2013-01-08 16:14:39 +0800 | |
---|---|---|
committer | 2013-01-08 12:32:49 -0800 | |
commit | e46cbea25112f445d346d845a95d46af3c78bf0c (patch) | |
tree | 7ccad1868631e1761ea8ec9cf17ff4122b001b7e /share/completions/mosh.fish | |
parent | 7f6e63aba5e7c45e09df63666a2458a6217ebbfe (diff) |
completions for mosh (http://mosh.mit.edu)
Diffstat (limited to 'share/completions/mosh.fish')
-rw-r--r-- | share/completions/mosh.fish | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/share/completions/mosh.fish b/share/completions/mosh.fish new file mode 100644 index 00000000..064c7023 --- /dev/null +++ b/share/completions/mosh.fish @@ -0,0 +1,26 @@ + +complete -x -c mosh -d Hostname -a " + +(__fish_print_hostnames) + +( + #Prepend any username specified in the completion to the hostname + echo (commandline -ct)|sed -ne 's/\(.*@\).*/\1/p' +)(__fish_print_hostnames) +" + +complete -x -c mosh -d User -a " +(__fish_print_users)@ +" +complete -c mosh --description "Command to run" -x -a '(__fish_complete_subcommand --fcs-skip=2)' + +complete -c mosh -l client --description 'Path to client helper on local machine (default: "mosh-client")' +complete -c mosh -l server --description 'Command to run server helper on remote machine (default: "mosh-server")' +complete -c mosh -l ssh --description 'SSH command to run when setting up session (example: "ssh -p 2222") (default: "ssh")' +complete -c mosh -f -l predict --description 'Controls use of speculative local echo' -a 'adaptive always never experimental' +complete -c mosh -s a --description 'Synonym for --predict=always' +complete -c mosh -s n --description 'Synonym for --predict=never' +complete -c mosh -s p -l port --description 'Use a particular server-side UDP port or port range' + +# Since mosh runs subcommands, it can accept any switches +complete -c mosh -u |