From c522da742ae1349e3970cf18fdbb275ce91dc2f7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 11 Jan 2017 23:32:47 +1300 Subject: Move prompt resetting into its own file --- sh/shrc | 6 ------ sh/shrc.d/prompt.sh | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 sh/shrc.d/prompt.sh (limited to 'sh') diff --git a/sh/shrc b/sh/shrc index c3e300ea..879c8947 100644 --- a/sh/shrc +++ b/sh/shrc @@ -13,12 +13,6 @@ HISTSIZE=$((1 << 12)) # Don't warn me about new mail unset -v MAILCHECK -# 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='+ ' - # Load all the POSIX-compatible functions from ~/.shrc.d; more advanced shells # like bash will have their own functions for sh in "$HOME"/.shrc.d/*.sh ; do 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='+ ' -- cgit v1.2.3