diff --git a/share/functions/__fish_protontricks_complete_appid.fish b/share/functions/__fish_protontricks_complete_appid.fish index 3a8125b67..157505822 100644 --- a/share/functions/__fish_protontricks_complete_appid.fish +++ b/share/functions/__fish_protontricks_complete_appid.fish @@ -1,6 +1,9 @@ # localization: skip(private) function __fish_protontricks_complete_appid - protontricks -l | + # '-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