Add completions for the time command, and improve completions for the type builtin and the su command

darcs-hash:20060123113936-ac50b-ba6f2516a8ce47734afd8da50fadf8995362da65.gz
This commit is contained in:
axel
2006-01-23 21:39:36 +10:00
parent b969a175d4
commit 3466f55ea0
3 changed files with 17 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
complete -x -c su -a "(__fish_complete_users)"
complete -c su -s l -l login -d (_ "Make login shell")
complete -r -c su -s c -l command -d (_ "Pass command to shell")
complete -r -c su -s c -l command -d (_ "Pass command to shell") -xa "(__fish_complete_command)"
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")

View File

@@ -0,0 +1,11 @@
complete -c time -a "(__fish_complete_command)" -d (_ "Command")
complete -c time -s f -l format -d (_ "Specify output format") -x
complete -c time -s p -l portable -d (_ "Use the portable output format")
complete -c time -s o -l output -d (_ "Do not send the results to stderr, but overwrite the specified file") -r
complete -c time -s a -l append -d (_ "(Used together with -o) Do not overwrite but append")
complete -c time -s v -l verbose -d (_ "Verbose mode")
complete -c time -l help -d (_ "Display help and exit")
complete -c time -s V -l version -d (_ "Display version and exit")

View File

@@ -5,3 +5,8 @@ complete -c type -s f -l no-functions -d (_ "Supress function and builtin lookup
complete -c type -s t -l type -d (_ "Print command type")
complete -c type -s p -l path -d (_ "Print path to command, or nothing if name is not a command")
complete -c type -s P -l force-path -d (_ "Print path to command")
complete -c type -a "(builtin -n)" -d (_ "Builtin")
complete -c type -a "(functions -n)" -d (_ "Function")
complete -c type -a "(__fish_complete_command)" -d (_ "Command")