fix(tmux): launch vim in interactive shell

This commit is contained in:
Rob Watson 2023-09-16 21:39:19 +02:00
parent 21118ee46e
commit 92f8caf8b7
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ else
fi fi
tmux new -d -s $sessionname tmux new -d -s $sessionname
tmux rename-window -t $sessionname:1 cli tmux rename-window -t $sessionname:1 cli
tmux new-window -t $sessionname -n vim nvim tmux new-window -t $sessionname -n vim -ic nvim
tmux select-window -t $sessionname:1 tmux select-window -t $sessionname:1
# https://github.com/tmux/tmux/issues/2064 # https://github.com/tmux/tmux/issues/2064
sleep 0.5 sleep 0.5

View File

@ -24,7 +24,7 @@ bind-key v split-window -h
bind-key s split-window -v bind-key s split-window -v
bind-key p new-window \; set window-status-style fg=white,bg=red bind-key p new-window \; set window-status-style fg=white,bg=red
bind-key c new-window -n 'cli' bind-key c new-window -n 'cli'
bind-key e new-window -n 'vim' nvim bind-key e new-window -n 'vim' zsh -ic nvim
bind-key C rename-window 'cli' bind-key C rename-window 'cli'
bind-key E rename-window 'vim' bind-key E rename-window 'vim'