From 63643ff17f994e537f39ccdccb1cb229fa02ce0b Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 30 Oct 2006 11:52:21 +1000 Subject: [PATCH] Fix completions for which and type, which where broken by previous script updates darcs-hash:20061030015221-ac50b-e4a0f2802e7a5dc4a1e594933f25cae00d9ea104.gz --- share/completions/type.fish | 2 +- share/completions/which.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/type.fish b/share/completions/type.fish index 5a40e8008..d50760a02 100644 --- a/share/completions/type.fish +++ b/share/completions/type.fish @@ -8,5 +8,5 @@ complete -c type -s P -l force-path -d (N_ "Print path to command") complete -c type -a "(builtin -n)" -d (N_ "Builtin") complete -c type -a "(functions -n)" -d (N_ "Function") -complete -c type -a "(__fish_complete_command)" -d (N_ "Command") +complete -c type -a "(commandline -ct)(complete -C(commandline -ct))" -x diff --git a/share/completions/which.fish b/share/completions/which.fish index 4d8883883..16c1b7c4d 100644 --- a/share/completions/which.fish +++ b/share/completions/which.fish @@ -12,4 +12,4 @@ complete -c which -l tty-only -d (N_ "Stop processing options on the right if no 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 +complete -c which -a "(commandline -ct)(complete -C(commandline -ct))" -x