From e8dfd1cfb2981a3d0b4d120c0ca3043816ca7f6d Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sun, 9 Feb 2025 15:52:38 +0100 Subject: use multiline prompt --- .config/shell/profile | 10 ++++++++-- 1 file 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" -- cgit v1.2.3