summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2025-02-09 15:52:38 +0100
committerMike Vink <ivi@vinkies.net>2025-02-09 15:52:38 +0100
commite8dfd1cfb2981a3d0b4d120c0ca3043816ca7f6d (patch)
tree1ac0292ed5222fe3d54fcf43182345ebdd26b955 /.config
parent6b8754aa8d42a1aa9485334a0f95f43634ab761d (diff)
use multiline prompt
Diffstat (limited to '.config')
-rw-r--r--.config/shell/profile10
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"