Skip to content

Instantly share code, notes, and snippets.

@netj
Last active July 25, 2022 22:45
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 netj/f76dffced1995a10a4c455d8418ed47d to your computer and use it in GitHub Desktop.
Save netj/f76dffced1995a10a4c455d8418ed47d to your computer and use it in GitHub Desktop.
zprofile for using latest bash instead of zsh
# ~/.zprofile for launching login shells to latest bash from Homebrew on macOS
# Origin: https://gist.github.com/netj/f76dffced1995a10a4c455d8418ed47d
#
# If you still have old bash (3.x) as your shell, please change it to zsh before using this with:
# chsh -s /bin/zsh
[ -n "${INTELLIJ_ENVIRONMENT_READER-}" ] || # to not interfere with PyCharm or IntelliJ IDEs
PATH="/opt/homebrew/bin:$PATH" exec env -u SHELL bash -il
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment