Fixed tmux loading on startup issue, also loads $HOME automatically

This commit is contained in:
2024-11-28 15:23:35 +02:00
parent 9773ec9330
commit d709d2de54
3 changed files with 14 additions and 8 deletions

View File

@@ -3,7 +3,10 @@
sess=$1
dir=$2
if [ "$sess" = "eko" ]; then
if [ "$dir" = "$HOME" ]; then
tmux rename-window -t $sess:1 main
tmux send-keys -t $sess:main.1 "fastfetch" C-m
elif [ "$sess" = "eko" ]; then
tmux rename-window -t $sess:1 editor
tmux send-keys -t $sess:editor.1 "vim" C-m