fork/fish-shell

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

Johannes Altmanningershare/**.fish: reformat with fish_indent13edce367

master
601 B26 linesraw
1function __color_generate_args --description 'Function to generate args'
2    set --local current_token (commandline --current-token --cut-at-cursor)
3    switch $current_token
4        case '/*'
5            echo -e '/?\tShow help'
6        case '*'
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    end
24end
25
26complete --command color --no-files --arguments '(__color_generate_args)'