Created
January 25, 2017 15:15
-
-
Save vandorjw/9381b77eb48f94d770b66f5832f3c245 to your computer and use it in GitHub Desktop.
Set bash shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file: ~/.profile | |
case $- in | |
*i*) | |
# Interactive session. Try switching to bash. | |
if [ -z "$BASH" ]; then # do nothing if running under bash already | |
bash=$(command -v bash) | |
if [ -x "$bash" ]; then | |
export SHELL="$bash" | |
exec "$bash" | |
fi | |
fi | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment