aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home/.bashrc11
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
114vterm_prompt_end(){
115 vterm_printf "51;A$(whoami)@$(hostname):$(pwd)"
116}
117
114if [[ "$INSIDE_EMACS" = 'vterm' ]]; then 118if [[ "$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)\]'
119fi 125fi
120
121vterm_prompt_end(){
122 vterm_printf "51;A$(whoami)@$(hostname):$(pwd)"
123}
124PS1=$PS1'\[$(vterm_prompt_end)\]'
125######################################################################## 126########################################################################