From 60e4c63d78ffded1f7393d6b76d8a1a3cbd21a21 Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 21 Mar 2024 21:03:04 +0300 Subject: [PATCH] tmux sessions manager --- .gitignore | 3 +++ home/user/.tmux/01.conf | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 973f2e3..bb3d80d 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,6 @@ lazy-lock.json home/user/.config/ranger/plugins home/user/.termux/shell + +home/user/.tmux/* +!home/user/.tmux/01.conf \ No newline at end of file diff --git a/home/user/.tmux/01.conf b/home/user/.tmux/01.conf index bf8cab1..96d3c2c 100644 --- a/home/user/.tmux/01.conf +++ b/home/user/.tmux/01.conf @@ -1,3 +1,4 @@ -new -s s01 -A -n main -c "$WORKING_PROJECT" "$EDITOR" -send-keys M-1 -splitw -d -h -l 40% -c '#{pane_current_path}' \ No newline at end of file +# vim: filetype=tmux +new-session -s s01 -A -n main -c "$WORKING_PROJECT" "$EDITOR" +send-keys -t s01:main M-1 +splitw -t s01:main -d -h -l 40% -c '#{pane_current_path}' \ No newline at end of file