fork/fish-shell

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

Janne Pulkkinencompletions/protontricks: use new flag for complete9235c5de6

master
395 B9 linesraw
1# localization: skip(private)
2function __fish_protontricks_complete_appid
3    # '-L' is a newer flag that lists all games without a graphical prompt
4    # if multiple Steam installations exist
5    set output "$(protontricks -L 2>/dev/null || protontricks -l 2>/dev/null)"
6    echo $output |
7        string match --regex '.*\(\d+\)' |
8        string replace --regex '(.*) \((\d+)\)' '$2\t$1'
9end