Skip to content

Instantly share code, notes, and snippets.

@epcim
Last active March 29, 2019 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epcim/6f350aa120b98e567fb305ad0ed753b6 to your computer and use it in GitHub Desktop.
Save epcim/6f350aa120b98e567fb305ad0ed753b6 to your computer and use it in GitHub Desktop.
OSX shell GNU
# keep you $SHELL as osx bash
# modify your term/iterm2/kitty to start your preffered shell (I do zsh, you can start "up to date" bash from `brew`)
# gnu cmd links without "g" preffixed
mkdir ~/bin-osxoverride
for i in $(ls /usr/local/bin/g*) ;do N=$(basename ${i/g//}); ln -sf $i ~/bin-osxoverride/$N; done
# update your path
echo "export PATH=~/bin-osxoverride:$PATH" >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment