summaryrefslogtreecommitdiff
path: root/pexpect/bashrc.sh
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2014-09-21 12:34:34 -0700
committerThomas Kluyver <takowl@gmail.com>2014-09-21 12:34:34 -0700
commit35a920e0f933929c6d37fffbb448212c27b92480 (patch)
treecc9bc3a475841f470e7fbc4d332d4beb4f6bf803 /pexpect/bashrc.sh
parentc628a62bd65b46b991f308d7bca0e4bb5ffb786c (diff)
downloadpexpect-35a920e0f933929c6d37fffbb448212c27b92480.tar.gz
Make replwrap.bash() robust against custom prompts in bashrc
By providing our own bashrc which overrides PS1, we can have a consistent prompt without breaking other customisations of bash that people may want to keep, such as aliases defined in bashrc.
Diffstat (limited to 'pexpect/bashrc.sh')
-rw-r--r--pexpect/bashrc.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/pexpect/bashrc.sh b/pexpect/bashrc.sh
new file mode 100644
index 0000000..99a3ac2
--- /dev/null
+++ b/pexpect/bashrc.sh
@@ -0,0 +1,5 @@
+source /etc/bash.bashrc
+source ~/.bashrc
+
+# Reset PS1 so pexpect can find it
+PS1="$"