fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

phaniumAdd --color option for some builtinsc23a4cbd9

master
1.2 KiB22 linesraw
1function __fish_maybe_list_all_functions
2    # if the current commandline token starts with an _, list all functions
3    if string match -qr -- '^_' (commandline -ct)
4        functions -an
5    else
6        functions -n
7    end
8end
9
10complete -c functions -s e -l erase -d "Erase function" -x -a "(__fish_maybe_list_all_functions)"
11complete -c functions -xa "(functions -na)" -d Function
12complete -c functions -s a -l all -d "Show hidden functions"
13complete -c functions -s h -l help -d "Display help and exit"
14complete -c functions -s d -l description -d "Set function description" -x
15complete -c functions -s q -l query -d "Test if function is defined"
16complete -c functions -s n -l names -d "List the names of the functions, but not their definition"
17complete -c functions -s c -l copy -d "Copy the specified function to the specified new name"
18complete -c functions -s D -l details -d "Display information about the function"
19complete -c functions -s v -l verbose -d "Print more output"
20complete -c functions -s H -l handlers -d "Show event handlers"
21complete -c functions -s t -l handlers-type -d "Show event handlers matching the given type" -x -a "signal variable exit job-id generic"
22complete -c functions -l color -d 'When to colorize output' -x -a 'always never auto'