2005-09-20 21:31:55 +08:00
|
|
|
# Completions for su
|
|
|
|
|
|
|
|
complete -x -c su -a "(__fish_complete_users)"
|
2017-10-12 01:17:35 +08:00
|
|
|
complete -c su -s l -l login -d "Make login shell"
|
|
|
|
complete -r -c su -s c -l command -d "Pass command to shell" -xa "(complete -C(commandline -ct))"
|
|
|
|
complete -c su -s f -l fast -d "Pass -f to the shell"
|
|
|
|
complete -c su -s m -l preserve_environment -d "Preserve environment"
|
|
|
|
complete -c su -s p -d "Preserve environment"
|
2005-09-20 21:31:55 +08:00
|
|
|
complete -x -c su -s s -l shell -a "(cat /etc/shells)"
|
2017-10-12 01:17:35 +08:00
|
|
|
complete -c su -l help -d "Display help and exit"
|
|
|
|
complete -c su -l version -d "Display version and exit"
|
2005-09-20 21:31:55 +08:00
|
|
|
|