bashrc_dispatch
bashrc_dispatch copied to clipboard
Launch different bash configurations for Linux vs OSX, interactive vs batch
There's two scenarios to guard against: (1) getting loaded more than once during the session, (2) infinite recursion. The original code handled (1), but not (2). The fix from mhmurray...
Move the $PRF variable up to the configuration section near $EXPORT_FUNCTIONS
Instead of checking for environment variable $PS1 (which could be blindly set by a user or script somewhere), ask Bash if it is interactive by interrogating $- automatic variable. If...
This line in .bashrc_once causes new shells to hang. ``` bash if [ -x /usr/local/bin/brew ]; then export PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH" if [ -f `brew --prefix`/etc/bash_completion ]; then . `brew...