mirror of
https://github.com/jarun/nnn.git
synced 2024-11-23 19:31:28 +00:00
Removed $TERM check from ewrap script example (only $TMUX left)
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
|
```sh
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if ! { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then
|
if [ -n "$TMUX" ] ; then
|
||||||
# Remove option --tab for new window
|
|
||||||
xfce4-terminal --tab -e "vim \"$*\""
|
|
||||||
else
|
|
||||||
# tmux session running
|
# tmux session running
|
||||||
tmux split-window -h "vim \"$*\""
|
tmux split-window -h "vim \"$*\""
|
||||||
|
else
|
||||||
|
# Remove option --tab for new window
|
||||||
|
xfce4-terminal --tab -e "vim \"$*\""
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue