aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-11 23:32:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-11 23:32:47 +1300
commitc522da742ae1349e3970cf18fdbb275ce91dc2f7 (patch)
treebdb019d59d60252cc99a9f2bf2d9f0cae9c3d300 /sh/shrc.d
parentUnset some more stupid variables (diff)
downloaddotfiles-c522da742ae1349e3970cf18fdbb275ce91dc2f7.tar.gz
dotfiles-c522da742ae1349e3970cf18fdbb275ce91dc2f7.zip
Move prompt resetting into its own file
Diffstat (limited to 'sh/shrc.d')
-rw-r--r--sh/shrc.d/prompt.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/sh/shrc.d/prompt.sh b/sh/shrc.d/prompt.sh
new file mode 100644
index 00000000..a481b5bb
--- /dev/null
+++ b/sh/shrc.d/prompt.sh
@@ -0,0 +1,5 @@
+# Some systems' /etc/profile setups export PS1, which really fouls things up
+# when switching between non-login shells; let's put things right by unsetting
+# it to break the export and then just setting them as simple variables
+unset PS1 PS2 PS3 PS4
+PS1='$ ' PS2='> ' PS3='? ' PS4='+ '