aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init/completions/su.fish2
-rw-r--r--init/completions/time.fish11
-rw-r--r--init/completions/type.fish5
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")
+