add bash scripts

This commit is contained in:
ys
2024-12-21 00:25:15 +00:00
parent f66e9f8b43
commit 45211dee1b
9 changed files with 160 additions and 0 deletions

View 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