From 62f3b442da763ce4b3d1f1b063888bf5c7d5ce74 Mon Sep 17 00:00:00 2001 From: axel Date: Sun, 25 Sep 2005 03:15:12 +1000 Subject: [PATCH] Completion updates darcs-hash:20050924171512-ac50b-85aaf8a30328a3b905fa571bec13fa168a75918b.gz --- init/completions/set_color.fish | 2 +- init/completions/type.fish | 7 +++++++ init/fish_function.fish | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 init/completions/type.fish diff --git a/init/completions/set_color.fish b/init/completions/set_color.fish index 76754dc52..33706f7bf 100644 --- a/init/completions/set_color.fish +++ b/init/completions/set_color.fish @@ -2,4 +2,4 @@ set -g __fish_colors black red green brown blue magenta cyan white normal complete -c set_color -x -d "Color" -a '$__fish_colors' complete -c set_color -s b -l background -x -a '$__fish_colors' - +complete -c set_color -s o -l bold -a 'Make font bold' diff --git a/init/completions/type.fish b/init/completions/type.fish new file mode 100644 index 000000000..f1651bc6a --- /dev/null +++ b/init/completions/type.fish @@ -0,0 +1,7 @@ + +complete -c type -s h -l help -d "Print this message" +complete -c type -s a -l all -d "Print all possible definitions of the specified name" +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" diff --git a/init/fish_function.fish b/init/fish_function.fish index d98d080d0..c19e98d4e 100644 --- a/init/fish_function.fish +++ b/init/fish_function.fish @@ -582,7 +582,7 @@ echo echo \tWith no options, indicate how each name would be interpreted if \n\tused as a command name. echo echo \t$bullet (__bold -h) or (__bold --help) print this message -echo \t$bullet (__bold -a) or (__bold --all) print all of possible definitions of the specified \n\t\ \ names +echo \t$bullet (__bold -a) or (__bold --all) print all possible definitions of the specified \n\t\ \ names echo \t$bullet (__bold -f) or (__bold --no-functions) supresses function and builtin lookup echo \t$bullet (__bold -t) or (__bold --type) print a string which is one of alias, keyword, \n\t\ \ function, builtin, or file if name is an alias, shell \n\t\ \ reserved word, function, builtin, or disk file, respectively echo \t$bullet (__bold -p) or (__bold --path) either return the name of the disk file that would \n\t\ \ be executed if name were specified as a command name, or nothing \n\t\ \ if ‘‘type -t name’’ would not return file