tmux mappings
This commit is contained in:
parent
05e37ca221
commit
5832c0d707
@ -50,7 +50,7 @@ bind R command-prompt -I '#S' -p "New session name:" "rename-session '%%'"
|
|||||||
|
|
||||||
|
|
||||||
# SSH 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 ;
|
# Call prompt via prefix ;
|
||||||
|
|||||||
@ -9,4 +9,5 @@ WORKING_PROJECT="$(mktemp -d)"
|
|||||||
|
|
||||||
tmux new-session -s "$SESSION" -d -n "$MAINW" -c "$WORKING_PROJECT"
|
tmux new-session -s "$SESSION" -d -n "$MAINW" -c "$WORKING_PROJECT"
|
||||||
tmux switch-client -t "$SESSION"
|
tmux switch-client -t "$SESSION"
|
||||||
tmux splitw -t "$SESSION:$MAINW" -d -b -h -l "$_tmux_new_pane_size" -c '#{pane_current_path}'
|
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
|
||||||
Loading…
x
Reference in New Issue
Block a user