diff options
| author | Jason Rayne <yo@arcayne.dev> | 2025-07-05 13:34:47 -0700 |
|---|---|---|
| committer | Jason Rayne <yo@arcayne.dev> | 2025-07-05 13:34:47 -0700 |
| commit | 2d2df4b99fbc97ff7c58a3b24f5c4d358b7eddcf (patch) | |
| tree | b312809bc5d1cc2327d54854364c6c316e56eae9 /src/shell-integration | |
| parent | a727b59b2beda24ef7d79ce282a87ac5bcf84013 (diff) | |
| parent | f04a388f00199ae271a428606fd1f993c202ab64 (diff) | |
Merge branch 'main' into ssh-integration
Diffstat (limited to 'src/shell-integration')
| -rw-r--r-- | src/shell-integration/bash/ghostty.bash | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shell-integration/bash/ghostty.bash b/src/shell-integration/bash/ghostty.bash index 6016e9096..f13a7d378 100644 --- a/src/shell-integration/bash/ghostty.bash +++ b/src/shell-integration/bash/ghostty.bash @@ -270,7 +270,6 @@ _ghostty_last_reported_cwd="" function __ghostty_precmd() { local ret="$?" if test "$_ghostty_executing" != "0"; then - _GHOSTTY_SAVE_PS0="$PS0" _GHOSTTY_SAVE_PS1="$PS1" _GHOSTTY_SAVE_PS2="$PS2" @@ -287,8 +286,8 @@ function __ghostty_precmd() { # Cursor if [[ "$GHOSTTY_SHELL_FEATURES" == *"cursor"* ]]; then - PS1=$PS1'\[\e[5 q\]' - PS0=$PS0'\[\e[0 q\]' + PS1=$PS1'\[\e[5 q\]' # blinking bar for input + builtin printf "\e[0 q" # reset to default cursor fi # Title (working directory) @@ -318,7 +317,6 @@ function __ghostty_precmd() { function __ghostty_preexec() { builtin local cmd="$1" - PS0="$_GHOSTTY_SAVE_PS0" PS1="$_GHOSTTY_SAVE_PS1" PS2="$_GHOSTTY_SAVE_PS2" |
