Mac OS game directory in Terminal

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
BG213
Posts: 4
Joined: Thu Nov 18, 2021 10:35 pm
Graphics Processor: Intel (Modern GZDoom)

Mac OS game directory in Terminal

Post by BG213 »

To start GZDoom on my mac the shortest directory is like this:

/ZDoom.app/Contents/MacOS/zdoom

I cannot start it like Windows users:

C:doom.exe

Is there a way to have a shorter path?
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Mac OS game directory in Terminal

Post by _mental_ »

Create an alias in your shell, zsh on recent versions of macOS, and bash on older ones. This has nothing to do with GZDoom itself because support of aliases is a common shell applications' feature.
BG213
Posts: 4
Joined: Thu Nov 18, 2021 10:35 pm
Graphics Processor: Intel (Modern GZDoom)

Re: Mac OS game directory in Terminal

Post by BG213 »

Terminal seems to not like me creating aliases of commands! So for example this works:

alias doom="/ZDoom.app/Contents/MacOS/zdoom -iwad doom2.wad -skill 4"

Typing

doom

into terminal will bring up Entryway, but if I make this alias:

alias s0='-loadgame /Users/myimac/Documents/ZDoom/Savegames/save0.zds'

Which is a save game of the beginning of The Gantlet, then try this in terminal:

doom s0

It loads the beginning of Entryway again! Similarly:

alias w3='-warp 03'

And in terminal:

doom w3

Still brings me to Entryway!

Seems like I can't create an alias of commands? But the first alias (which starts off as a file path string) contains commands and they do work! I even checked the skill level in console and it is correct! I also use the "alias" command in terminal to check if all the above aliases are known to my system. Indeed they are, just not being recognized by ZDoom!? Argggghhhh!!
Post Reply

Return to “General”