Files
linux-bin/wm_spawn
2023-09-28 22:52:04 -04:00

10 lines
225 B
Bash
Executable File

#!/bin/bash
if [ -n "$TMUX" ] ; then
# tmux session running
# tmux split-window -h "nvim \"$*\""
tmux split-window -h $EDITOR $1
else
# alacritty -e "nvim \"$*\""
(alacritty -e bash -ic "$EDITOR $1") &
fi