1
1
mirror of https://github.com/jarun/nnn.git synced 2024-11-22 15:20:59 +03:00

Removed $TERM check from ewrap script example (only $TMUX left)

pvx- 2021-08-30 22:27:47 +02:00
parent b5c2613a0b
commit c92bb8b292

@ -162,12 +162,12 @@ Set up a script (say `ewrap`) to open the editor in a new `tmux` split-pane or a
```sh
#!/usr/bin/env sh
if ! { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then
# Remove option --tab for new window
xfce4-terminal --tab -e "vim \"$*\""
else
if [ -n "$TMUX" ] ; then
# tmux session running
tmux split-window -h "vim \"$*\""
else
# Remove option --tab for new window
xfce4-terminal --tab -e "vim \"$*\""
fi
```