From d709d2de54f5be174bebde60a10e0e3fc7b58b44 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 28 Nov 2024 15:23:35 +0200 Subject: Fixed tmux loading on startup issue, also loads $HOME automatically --- scripts/tmux-session-setup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/tmux-session-setup') diff --git a/scripts/tmux-session-setup b/scripts/tmux-session-setup index 835e2c5..be51ad6 100755 --- a/scripts/tmux-session-setup +++ b/scripts/tmux-session-setup @@ -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 -- cgit v1.3.1