Ensure edit-in-kitty works even if kitten is not in PATH

Still needs to be implemented for fish shell
This commit is contained in:
Kovid Goyal
2023-01-31 20:41:39 +05:30
parent 077f71cad5
commit 47641456da
3 changed files with 9 additions and 3 deletions

View File

@@ -209,7 +209,10 @@ _ksi_main() {
_ksi_prompt[ps0]+="\[\e]133;C\a\]"
fi
alias edit-in-kitty="kitten edit-in-kitty"
[[ -z "${KITTY_KITTEN_EXE}" ]] && KITTY_KITTEN_EXE="kitten"
alias edit-in-kitty="${KITTY_KITTEN_EXE} edit-in-kitty"
builtin unset KITTY_KITTEN_EXE
if [[ "${_ksi_prompt[complete]}" == "y" ]]; then
_ksi_completions() {
builtin local src