mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-05 17:36:32 +00:00
shell-integration: implement "no-cursor" option
Implement a "no-cursor" option for shell integration. This option acts like "detect" but doesn't set the cursor shape.
This commit is contained in:
@@ -41,8 +41,10 @@ function __ghostty_precmd() {
|
||||
PS2=$PS2'\[\e]133;B\a\]'
|
||||
|
||||
# Cursor
|
||||
if test "$GHOSTTY_SHELL_INTEGRATION_NO_CURSOR" != "1"; then
|
||||
PS1=$PS1'\[\e[5 q\]'
|
||||
PS0=$PS0'\[\e[0 q\]'
|
||||
fi
|
||||
|
||||
# Command
|
||||
PS0=$PS0'$(__ghostty_get_current_command)'
|
||||
|
Reference in New Issue
Block a user