mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fixes environmental variables not being passed on preview-tui (#644)
This commit is contained in:
parent
b3e2ffc2e6
commit
5a6078967b
|
@ -195,8 +195,12 @@ elif [ "$TERMINAL" = "kitty" ]; then
|
|||
kitty @ goto-layout splits >/dev/null
|
||||
|
||||
# Trying to use kitty's integrated window management as the split window.
|
||||
# All environmental variables that will be used in the new window must
|
||||
# be explicitly passed.
|
||||
kitty @ launch --no-response --title "nnn preview" --keep-focus \
|
||||
--cwd "$PWD" --env "NNN_FIFO=$NNN_FIFO" --env "PREVIEW_MODE=1" \
|
||||
--cwd "$PWD" --env "PATH=$PATH" --env "NNN_FIFO=$NNN_FIFO" \
|
||||
--env "PREVIEW_MODE=1" --env "PAGER=$PAGER" \
|
||||
--env "USE_SCOPE=$USE_SCOPE" --env "SPLIT=$SPLIT" \
|
||||
--location "${SPLIT}split" "$0" "$1" >/dev/null
|
||||
|
||||
# Restoring the previous layout.
|
||||
|
|
Loading…
Reference in a new issue