1
1
mirror of https://github.com/jarun/nnn.git synced 2024-11-04 13:53:35 +03:00

Update plugins/preview-tui

use `$WEZTERM_PANE` instead, since `$WEZTERM_UNIX_SOCKET` is not set on Linux

Co-authored-by: luukvbaal <31730729+luukvbaal@users.noreply.github.com>
This commit is contained in:
Nizamuddin Sulieman 2023-02-04 07:36:57 +08:00 committed by GitHub
parent 1ad6d30a36
commit 70204a2d0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ start_preview() {
TERMINAL=tmux
elif [ -n "$KITTY_LISTEN_ON" ]; then
TERMINAL=kitty
elif [ -n "$WEZTERM_UNIX_SOCKET" ]; then
elif [ -n "$WEZTERM_PANE" ]; then
TERMINAL=wezterm
elif [ -z "$TERMINAL" ] && [ "$TERM_PROGRAM" = "iTerm.app" ]; then
TERMINAL=iterm