beautified dmux script

This commit is contained in:
zegonix
2024-12-30 15:04:23 +01:00
parent 6b39a6a7e1
commit 2db7b76836

View File

@@ -4,11 +4,8 @@ SESSION='quak'
# dont forget the '-d' option, otherwise the rest of # dont forget the '-d' option, otherwise the rest of
# the commands will get executed after the session is closed # the commands will get executed after the session is closed
tmux new-session -d -s "$SESSION" -n "temp" tmux new-session -d -s "$SESSION" -n "temp"
tmux new-window -t "$SESSION" -n "dotfiles" tmux new-window -t "$SESSION" -n "dotfiles" -c $HOME/dotfiles
tmux send-keys -t "$SESSION" "cd ~/dotfiles" C-m "clear" C-m tmux new-window -t "$SESSION" -n "docs" -c $HOME/collection
tmux new-window -t "$SESSION" -n "docs" tmux new-window -t "$SESSION" -n "stuff" -c $HOME
tmux send-keys -t "$SESSION" "cd ~/collection" C-m "clear" C-m
tmux new-window -t "$SESSION" -n "stuff"
tmux send-keys -t "$SESSION" "cd ~" C-m "clear" C-m
tmux kill-window -t "temp" tmux kill-window -t "temp"
tmux attach -t "$SESSION" tmux attach -t "$SESSION"