2005-09-20 13:31:55 +00:00
|
|
|
# Completions for su
|
|
|
|
|
|
|
|
complete -x -c su -a "(__fish_complete_users)"
|
2007-01-16 01:18:28 +00:00
|
|
|
complete -c su -s l -l login --description "Make login shell"
|
|
|
|
complete -r -c su -s c -l command --description "Pass command to shell" -xa "(__fish_complete_command)"
|
|
|
|
complete -c su -s f -l fast --description "Pass -f to the shell"
|
|
|
|
complete -c su -s m -l preserve_environment --description "Preserve environment"
|
|
|
|
complete -c su -s p --description "Preserve environment"
|
2005-09-20 13:31:55 +00:00
|
|
|
complete -x -c su -s s -l shell -a "(cat /etc/shells)"
|
2007-01-16 01:18:28 +00:00
|
|
|
complete -c su -l help --description "Display help and exit"
|
|
|
|
complete -c su -l version --description "Display version and exit"
|
2005-09-20 13:31:55 +00:00
|
|
|
|