Shell integration: More builtin commands

This commit is contained in:
pagedown
2023-02-03 10:56:19 +08:00
parent 7ea4270c88
commit df1a99a974
2 changed files with 7 additions and 7 deletions

View File

@@ -362,8 +362,8 @@ _ksi_deferred_init() {
builtin local venv="${VIRTUAL_ENV}/bin/activate"
builtin local sourced=""
_ksi_s_is_ok() {
[[ -z "$sourced" && "$KITTY_CLONE_SOURCE_STRATEGIES" == *",$1,"* ]] && return 0
return 1
[[ -z "$sourced" && "$KITTY_CLONE_SOURCE_STRATEGIES" == *",$1,"* ]] && builtin return 0
builtin return 1
}
if _ksi_s_is_ok "venv" && [[ -n "${VIRTUAL_ENV}" && -r "$venv" ]]; then
@@ -421,7 +421,7 @@ clone-in-kitty() {
"") break;;
-h|--help)
builtin printf "%s\n\n%s\n" "Clone the current zsh session into a new kitty window." "For usage instructions see: https://sw.kovidgoyal.net/kitty/shell-integration/#clone-shell"
return
builtin return
;;
*) data="$data,a=$(builtin printf "%s" "$1" | builtin command base64)";;
esac