Hello,

Here is my first post to the fish mailing list and a new completion for sshfs.

Sean

#
# Completions for sshfs
#
# Host combinations, borrowed from ssh.fish
#
complete -x -c sshfs -d Hostname -a "

(__fish_print_hostnames):

(
        #Prepend any username specified in the completion to the hostname
        echo (commandline -ct)|sed -ne 's/\([EMAIL PROTECTED]).*/\1/p'
)(__fish_print_hostnames):

(__fish_print_users)@
"
#
# Mount Points, for neatness, I am only mounting under ~/mnt/
#
complete -c sshfs -d (_ "Mount point") -x -a '(find ~/mnt -type d)'
#
# Command options
#
complete -c sshfs -s V -d (_ "Version information")
complete -c sshfs -s p -x -d (_ "Port")
complete -c sshfs -s C -d (_ "Compression")
complete -c sshfs -s o -x -d (_ "Mount options")
complete -c sshfs -s d -d (_ "Enable debug")
complete -c sshfs -s f -d (_ "Foreground operation")
complete -c sshfs -s s -d (_ "Disable multi-threaded operation")
complete -c sshfs -s r -d (_ "Mount options")
complete -c sshfs -s h -d (_ "Print help")

-- 
Sean Higgins, [EMAIL PROTECTED]
http://www.systura.com - "Where information becomes knowledge."


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to