mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 00:31:15 -03:00
`protontricks -l` will launch a graphical prompt to choose Steam installation if multiple installations are found. `-L/--list-all` is a new flag introduced in 1.14.0 that retrieves all games without user interaction. Also silence stderr, since it can cause warning messages to be printed. Part of #12477
10 lines
395 B
Fish
10 lines
395 B
Fish
# localization: skip(private)
|
|
function __fish_protontricks_complete_appid
|
|
# '-L' is a newer flag that lists all games without a graphical prompt
|
|
# if multiple Steam installations exist
|
|
set output "$(protontricks -L 2>/dev/null || protontricks -l 2>/dev/null)"
|
|
echo $output |
|
|
string match --regex '.*\(\d+\)' |
|
|
string replace --regex '(.*) \((\d+)\)' '$2\t$1'
|
|
end
|