diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-11 23:16:02 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-11 23:16:02 +1300 |
commit | 3cd623e6f016aa13d387cb87058a768dbc8ba108 (patch) | |
tree | ff29d506f4e8b3234273bc854601d83e88d25504 | |
parent | Have ls() func undo aliases in its way (diff) | |
download | dotfiles-3cd623e6f016aa13d387cb87058a768dbc8ba108.tar.gz dotfiles-3cd623e6f016aa13d387cb87058a768dbc8ba108.zip |
Work around systems that export PS1
So far I don't like SlackWare's shell setup very much at all
-rw-r--r-- | sh/shrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -13,6 +13,12 @@ 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 |