fork/fish-shell

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

Johannes AltmanningerPrepare to not localize private function descriptionsd835c5252

master
1003 B33 linesraw
1# localization: tier3
2function __fish_cmd__complete_args
3    set -l current_token (commandline -tc)
4
5    switch $current_token
6        case '/t:*'
7            echo -e '0\tBlack
81\tBlue
92\tGreen
103\tAqua
114\tRed
125\tPurple
136\tYellow
147\tWhite
158\tGray
169\tLight blue
17A\tLight green
18B\tLight aqua
19C\tLight red
20D\tLight purple
21E\tLight yellow
22F\tBright white' | awk -F '\t' "{ printf \"$current_token%s\t%s\n\", \$1, \$2 }"
23        case '/e:*'
24            echo -e 'on\tEnable command extensions
25off\tDisable command extensions' | awk -F '\t' "{ printf \"$current_token%s\t%s\n\", \$1, \$2 }"
26        case '/f:*'
27            echo -e 'on\tEnable file and directory name completion
28off\tDisable file and directory name completion' | awk -F '\t' "{ printf \"$current_token%s\t%s\n\", \$1, \$2 }"
29        case '/v:*'
30            echo -e 'on\tEnable delayed environment variable expansion
31off\tDisable delayed environment variable expansion' | awk -F '\t' "{ printf \"$current_token%s\t%s\n\", \$1, \$2 }"
32    end
33end