fork/fish-shell

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

Fabian HomborgRestyle330f1701d

master
1.2 KiB24 linesraw
1function __fish_complete_nethack
2    set -l roles Archeologist Barbarian Cave{man,woman} Healer Knight Monk \
3        Priest{,ess} Rogue Ranger Samurai Tourist Valkyrie Wizard
4
5    set -l races Human Elf Dwarf Gnome Orc
6
7    for r in $$argv[1]
8        printf "%s\t%s\n" (string sub -l 3 $r) $r
9    end
10end
11
12complete -c nethack -s d -ra "(__fish_complete_directories)" -d 'Specify a playground directory'
13complete -c nethack -s n -d 'Suppress printing any news from the game administrator'
14complete -c nethack -s p -x -a "(__fish_complete_nethack roles)" -d 'Specify profession'
15complete -c nethack -s r -x -a "(__fish_complete_nethack races)" -d 'Specify race'
16complete -c nethack -s D -d 'Start in debugging (wizard) mode'
17complete -c nethack -s X -d 'Start in discovery mode'
18complete -c nethack -s u -x -d 'Specify player name'
19complete -c nethack -o dec -d 'Use DEC graphics'
20complete -c nethack -o ibm -d 'Use IBM graphics'
21complete -c nethack -l version -d 'Show version information'
22complete -c nethack -l version:paste -d 'Show version information & copy it to paste buffer'
23complete -c nethack -s s -d 'Print the list of your scores'
24complete -c nethack -s v -d 'Print all versions present in the score file'