diff options
Diffstat (limited to 'home')
-rw-r--r-- | home/.bashrc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/home/.bashrc b/home/.bashrc index 88b1634..bc5e0a6 100644 --- a/home/.bashrc +++ b/home/.bashrc | |||
@@ -111,15 +111,16 @@ vterm_printf() { | |||
111 | fi | 111 | fi |
112 | } | 112 | } |
113 | 113 | ||
114 | vterm_prompt_end(){ | ||
115 | vterm_printf "51;A$(whoami)@$(hostname):$(pwd)" | ||
116 | } | ||
117 | |||
114 | if [[ "$INSIDE_EMACS" = 'vterm' ]]; then | 118 | if [[ "$INSIDE_EMACS" = 'vterm' ]]; then |
115 | function clear() { | 119 | function clear() { |
116 | vterm_printf "51;Evterm-clear-scrollback"; | 120 | vterm_printf "51;Evterm-clear-scrollback"; |
117 | tput clear; | 121 | tput clear; |
118 | } | 122 | } |
123 | PS1="$ " | ||
124 | PS1=$PS1'\[$(vterm_prompt_end)\]' | ||
119 | fi | 125 | fi |
120 | |||
121 | vterm_prompt_end(){ | ||
122 | vterm_printf "51;A$(whoami)@$(hostname):$(pwd)" | ||
123 | } | ||
124 | PS1=$PS1'\[$(vterm_prompt_end)\]' | ||
125 | ######################################################################## | 126 | ######################################################################## |