summaryrefslogtreecommitdiff
path: root/src/host_io.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/host_io.zig')
-rw-r--r--src/host_io.zig7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/host_io.zig b/src/host_io.zig
index fcd2225b..34c2f57a 100644
--- a/src/host_io.zig
+++ b/src/host_io.zig
@@ -589,8 +589,13 @@ pub const Shell = struct {
const bash_rc =
\\[ -f "$HOME/.bashrc" ] && source "$HOME/.bashrc"
\\PS1='\[\e]133;A;cl=line;aid=pardes\a\]'"$PS1"'\[\e]133;B;aid=pardes\a\]'
+ \\PS2='\[\e]133;A;k=c;aid=pardes\a\]'"$PS2"'\[\e]133;B;aid=pardes\a\]'
\\PROMPT_COMMAND='printf "\e]133;D;%s;aid=pardes\a" "$?"'"${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
- \\trap 'printf "\e]133;C;aid=pardes\a"' DEBUG
+ \\if ((BASH_VERSINFO[0] * 100 + BASH_VERSINFO[1] >= 404)); then
+ \\ PS0='\e]133;C;aid=pardes\a'"$PS0"
+ \\else
+ \\ trap 'printf "\e]133;C;aid=pardes\a"' DEBUG
+ \\fi
\\
;