Skip to content

Commit

Permalink
Merge pull request #457 from zimbatm/better-bashrc
Browse files Browse the repository at this point in the history
handle more OSes
  • Loading branch information
takluyver committed Dec 8, 2017
2 parents 08c0c79 + dc3c86e commit 7dadb43
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pexpect/bashrc.sh
@@ -1,5 +1,12 @@
source /etc/bash.bashrc
source ~/.bashrc
if [[ -f /etc/bashrc ]]; then
source /etc/bashrc
fi
if [[ -f /etc/bash.bashrc ]]; then
source /etc/bash.bashrc
fi
if [[ -f ~/.bashrc ]]; then
source ~/.bashrc
fi

# Reset PS1 so pexpect can find it
PS1="$"

0 comments on commit 7dadb43

Please sign in to comment.