From 2db7b768365a8e965af0ffd7a1891da992478a1d Mon Sep 17 00:00:00 2001 From: zegonix Date: Mon, 30 Dec 2024 15:04:23 +0100 Subject: [PATCH] beautified `dmux` script --- misc/scripts/dmux | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/misc/scripts/dmux b/misc/scripts/dmux index 5db25e7..c8d678d 100755 --- a/misc/scripts/dmux +++ b/misc/scripts/dmux @@ -4,11 +4,8 @@ SESSION='quak' # dont forget the '-d' option, otherwise the rest of # the commands will get executed after the session is closed tmux new-session -d -s "$SESSION" -n "temp" -tmux new-window -t "$SESSION" -n "dotfiles" -tmux send-keys -t "$SESSION" "cd ~/dotfiles" C-m "clear" C-m -tmux new-window -t "$SESSION" -n "docs" -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 new-window -t "$SESSION" -n "dotfiles" -c $HOME/dotfiles +tmux new-window -t "$SESSION" -n "docs" -c $HOME/collection +tmux new-window -t "$SESSION" -n "stuff" -c $HOME tmux kill-window -t "temp" tmux attach -t "$SESSION"