tmux mappings

This commit is contained in:
thek4n 2024-05-24 16:50:26 +03:00
parent 05e37ca221
commit 5832c0d707
2 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ bind R command-prompt -I '#S' -p "New session name:" "rename-session '%%'"
# SSH Session
bind h command-prompt -p "Remote host:" "new-session -n 1 -s 'ssh-%1' -A ssh %1"
bind H command-prompt -p "Remote host:" "new-session -s 'ssh-%1' -A ssh %1 \; set default-command 'ssh %1' \; set remain-on-exit on \; set detach-on-destroy on"
# Call prompt via prefix ;

View File

@ -10,3 +10,4 @@ WORKING_PROJECT="$(mktemp -d)"
tmux new-session -s "$SESSION" -d -n "$MAINW" -c "$WORKING_PROJECT"
tmux switch-client -t "$SESSION"
tmux splitw -t "$SESSION:$MAINW" -d -b -h -l "$_tmux_new_pane_size" -c '#{pane_current_path}'
tmux send-keys -t "$SESSION:$MAINW.1" 'git clone .' Left Left