10 lines
197 B
Bash
10 lines
197 B
Bash
|
|
#!/usr/bin/env sh
|
||
|
|
|
||
|
|
if [ -n "$TMUX" ] ; then
|
||
|
|
# tmux session running
|
||
|
|
tmux split-window -h "$EDITOR \"$*\""
|
||
|
|
else
|
||
|
|
# Remove option --tab for new window
|
||
|
|
( alacritty -e xdg-open $* & )
|
||
|
|
fi
|