Still have to do the fix for zsh/fish
This commit is contained in:
Kovid Goyal
2022-02-27 10:20:19 +05:30
parent f9621b1e11
commit d53f8f24c4
7 changed files with 36 additions and 6 deletions

View File

@@ -139,7 +139,8 @@ _ksi_main() {
last_cmd=$(HISTTIMEFORMAT= builtin history 1)
last_cmd="${last_cmd#*[[:digit:]]*[[:space:]]}" # remove leading history number
last_cmd="${last_cmd#"${last_cmd%%[![:space:]]*}"}" # remove remaining leading whitespace
builtin printf "\e]2;%s\a" "${last_cmd}"
last_cmd=$(printf "%s" "$last_cmd" | base64 | tr -d \\n)
builtin printf "\e]22222;%s\a" "${last_cmd}"
}
_ksi_prompt[ps0_suffix]+='$(_ksi_get_current_command)'
fi