From 939ab0490ea56d90eb1224e1640271cd7b804af3 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Tue, 6 Jun 2023 22:24:59 -0400 Subject: Fix for Emacs Vterm $PS1 --- home/.bashrc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'home') diff --git a/home/.bashrc b/home/.bashrc index 88b1634..bc5e0a6 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -111,15 +111,16 @@ vterm_printf() { fi } +vterm_prompt_end(){ + vterm_printf "51;A$(whoami)@$(hostname):$(pwd)" +} + if [[ "$INSIDE_EMACS" = 'vterm' ]]; then function clear() { vterm_printf "51;Evterm-clear-scrollback"; tput clear; } + PS1="$ " + PS1=$PS1'\[$(vterm_prompt_end)\]' fi - -vterm_prompt_end(){ - vterm_printf "51;A$(whoami)@$(hostname):$(pwd)" -} -PS1=$PS1'\[$(vterm_prompt_end)\]' ######################################################################## -- cgit v1.2.3