mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
@@ -72,7 +72,7 @@ _ksi_main() {
|
|||||||
fi
|
fi
|
||||||
_ksi_get_current_command() {
|
_ksi_get_current_command() {
|
||||||
local last_cmd=$(HISTTIMEFORMAT= builtin history 1)
|
local last_cmd=$(HISTTIMEFORMAT= builtin history 1)
|
||||||
last_cmd="${last_cmd#*[0-9]*[[:space:]]}" # remove leading history number
|
last_cmd="${last_cmd#*[[:digit:]]*[[:space:]]}" # remove leading history number
|
||||||
last_cmd="${last_cmd#"${last_cmd%%[![:space:]]*}"}" # remove remaining leading whitespace
|
last_cmd="${last_cmd#"${last_cmd%%[![:space:]]*}"}" # remove remaining leading whitespace
|
||||||
builtin printf "\e]2;%s\a" "${last_cmd}"
|
builtin printf "\e]2;%s\a" "${last_cmd}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user