add bash scripts
This commit is contained in:
11
code/misc/bash/nnn/ewrap.sh
Normal file
11
code/misc/bash/nnn/ewrap.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if [ -n "$TMUX" ] ; then
|
||||
# tmux session running
|
||||
tmux split-window -h "nano \"$*\""
|
||||
else
|
||||
# Remove option --tab for new window
|
||||
#xfce4-terminal --tab -e "vim \"$*\""
|
||||
tmux split-window -h "vim \"$*\""
|
||||
#gnome-terminal --tab -e "vim \"$*\""
|
||||
fi
|
||||
Reference in New Issue
Block a user