mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Add an env var that can be used to eval an expression at startup of shell
This will come in handy to implement serialization as session with running of current foreground command.
This commit is contained in:
parent
0fb1835af1
commit
337cbf1435
6 changed files with 35 additions and 2 deletions
|
|
@ -121,6 +121,8 @@ _ksi_main() {
|
|||
fi
|
||||
builtin unset SSH_KITTEN_KITTY_DIR
|
||||
fi
|
||||
builtin local krcs="$KITTY_SI_RUN_COMMAND_AT_STARTUP"
|
||||
builtin unset KITTY_SI_RUN_COMMAND_AT_STARTUP
|
||||
|
||||
_ksi_debug_print() {
|
||||
# print a line to STDERR of parent kitty process
|
||||
|
|
@ -351,6 +353,7 @@ _ksi_main() {
|
|||
fi
|
||||
fi
|
||||
builtin unset KITTY_IS_CLONE_LAUNCH KITTY_CLONE_SOURCE_STRATEGIES
|
||||
if [[ -n "$krcs" ]]; then builtin eval "$krcs"; fi
|
||||
}
|
||||
_ksi_main
|
||||
builtin unset -f _ksi_main
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue