This commit is contained in:
pagedown 2022-04-18 14:51:15 +08:00
parent 1994c17c75
commit b94afbba13
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB
2 changed files with 3 additions and 4 deletions

View File

@ -240,9 +240,8 @@ The :file:`clone-in-kitty` command takes almost all the same arguments as the
window, etc. Arguments of launch that can cause code execution or that don't
make sense when cloning are ignored. Most prominently, the following options
are ignored: :option:`launch --allow-remote-control`, :option:`launch
--copy-cmdline`, :option:`launch --copy-env`, :option:`launch
--allow-remote-control`, :option:`launch --stdin-source`, :option:`launch
--marker` and :option:`launch --watcher`.
--copy-cmdline`, :option:`launch --copy-env`, :option:`launch --stdin-source`,
:option:`launch --marker` and :option:`launch --watcher`.
:file:`clone-in-kitty` can be configured to source arbitrary code in the
cloned window using environment variables. It will automatically clone virtual

View File

@ -122,7 +122,7 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after
if _ksi_s_is_ok "venv"
and test -n "$VIRTUAL_ENV" -a -r "$venv"
set _ksi_sourced "y"
set -e VIRTUAL_ENV _OLD_FISH_PROMPT_OVERRIDE # activate.fish stupidly exports _OLD_FISH_PROMPT_OVERRIDE
set --erase VIRTUAL_ENV _OLD_FISH_PROMPT_OVERRIDE # activate.fish stupidly exports _OLD_FISH_PROMPT_OVERRIDE
source "$venv"
end
if _ksi_s_is_ok "conda"