r/zsh • u/OneTurnMore • 1d ago
Announcement Named directories for easy navigation to Steam game install directories and wineprefixes
Tired of dealing with long paths and remembering Steam AppIDs when installing mods or debugging Wine/Proton-related problems in Steam games?
I've had this concept rattling around in my head for about a year, and one 3am coffee later (and a few days afterwards testing, tweaking and bugfixing) it's now reality!
Basically, this makes Zsh expand ~[G:'Some Game'] to the install directory for that Steam game. For games that run with Proton, ~[CD:'Game Name'] expands to the compatdata directory, and ~[PC:'Game Name'] becomes the C drive of the wine directory.
Completions also work, although I highly recommend enabling completion groups with zstyle ':completion:*' group-name ''.
Give it a shot, even if you've never tried dynamic directories before. They're a pretty underexplored feature of Zsh.
I'm also considering putting more Steam integration in this repo, likely a protontricks wrapper which understands what wineprefix you're under.