Skip to main content
ertius.org

platform-specific shell config

A while aqo, I decided to once-again put all my dot files in vc and actually keep it up to date this time. I used stow etc and it was pretty simple, but as I diligently added things, I realised that trying to make things work on both my Mac and my various Debian boxes was going to be a pain.

So, I added this simple thing to my ~/.zshrc:

# What OS are we running?
if [[ $(uname) == "Darwin" ]]; then
     source "$HOME/.zshrc.macos"
elif command -v apt >/dev/null; then
      source "$HOME/.zshrc.debian"
fi