diff options
Diffstat (limited to '.config/shell/profile')
| -rw-r--r-- | .config/shell/profile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/.config/shell/profile b/.config/shell/profile index 21f06e5..ad21f71 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -1,3 +1,9 @@ export HISTFILE="$HOME/.history" -export PS1="$(hostname) $pwd" -bind -m ^L=clear^J +export HISTCONTROL="ignorespace" + +# Emacs mode clear chops off multline prompts. +export PS1="$(hostname):/\$( +pwd | cut -d'/' -f2- --output-delimiter ' +' | cut -c1-3 | paste -sd '/' +)\n# " +bind -m ^L=" clear^J" |
