diff options
author | 2006-01-23 21:39:36 +1000 | |
---|---|---|
committer | 2006-01-23 21:39:36 +1000 | |
commit | 3466f55ea0d1884b5f46b897b9aa1c0b49ca539d (patch) | |
tree | 869af7ef682d07d2364e45a446d41e649d4a3eae /init | |
parent | b969a175d4b5bddbe28c0c18cbe61a201758d171 (diff) |
Add completions for the time command, and improve completions for the type builtin and the su command
darcs-hash:20060123113936-ac50b-ba6f2516a8ce47734afd8da50fadf8995362da65.gz
Diffstat (limited to 'init')
-rw-r--r-- | init/completions/su.fish | 2 | ||||
-rw-r--r-- | init/completions/time.fish | 11 | ||||
-rw-r--r-- | init/completions/type.fish | 5 |
3 files changed, 17 insertions, 1 deletions
diff --git a/init/completions/su.fish b/init/completions/su.fish index fa64aebe..6bdabdd0 100644 --- a/init/completions/su.fish +++ b/init/completions/su.fish @@ -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") diff --git a/init/completions/time.fish b/init/completions/time.fish new file mode 100644 index 00000000..77721b6b --- /dev/null +++ b/init/completions/time.fish @@ -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") + diff --git a/init/completions/type.fish b/init/completions/type.fish index d1bbc98a..afd99f95 100644 --- a/init/completions/type.fish +++ b/init/completions/type.fish @@ -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") + |