aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/which.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-14 00:48:07 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-14 00:48:07 +1000
commit58aa1e75c1fee54885f9e5034fee181aa72bce79 (patch)
treec10d518ef0f158277463c1f266b53522422e0150 /share/completions/which.fish
parent0361423469ec3c70d3e053ef475e2bed686b86d8 (diff)
Add completions for the which command
darcs-hash:20060613144807-ac50b-a0819777ec904700e644508a3b97e98f8c2acaee.gz
Diffstat (limited to 'share/completions/which.fish')
-rw-r--r--share/completions/which.fish15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/completions/which.fish b/share/completions/which.fish
new file mode 100644
index 00000000..4d888388
--- /dev/null
+++ b/share/completions/which.fish
@@ -0,0 +1,15 @@
+
+complete -c which -s a -l all -d (N_ "Print all matching executables in PATH, not just the first")
+complete -c which -s i -l read-alias -d (N_ "Read aliases from stdin, reporting matching ones on stdout")
+complete -c which -l skip-alias -d (N_ "Ignore option '--read-alias'")
+complete -c which -l read-functions -d (N_ "Read shell function definitions from stdin, reporting matching ones on stdout")
+complete -c which -l skip-functions -d (N_ "Ignore option '--read-functions'")
+complete -c which -l skip-dot -d (N_ "Skip directories in PATH that start with a dot")
+complete -c which -l skip-tilde -d (N_ "Skip directories in PATH that start with a tilde and executables which reside in the HOME directory")
+complete -c which -l show-dot -d (N_ "If a directory in PATH starts with a dot and a matching executable was found for that path, then print './programname'")
+complete -c which -l show-tilde -d (N_ "Output a tilde when a directory matches the HOME directory")
+complete -c which -l tty-only -d (N_ "Stop processing options on the right if not on tty")
+complete -c which -s v -s V -l version -d (N_ "Display version and exit")
+complete -c which -l help -d (N_ "Display help and exit")
+
+complete -c which -a "(__fish_complete_command)" -d "Command" -x