From 92f8caf8b7415b80ba3afec727fb7e72e834e86a Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Sat, 16 Sep 2023 21:39:19 +0200 Subject: [PATCH] fix(tmux): launch vim in interactive shell --- script/tmuxsess | 2 +- tmux.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/tmuxsess b/script/tmuxsess index b17abc9..7c52d29 100755 --- a/script/tmuxsess +++ b/script/tmuxsess @@ -15,7 +15,7 @@ else fi tmux new -d -s $sessionname 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 # https://github.com/tmux/tmux/issues/2064 sleep 0.5 diff --git a/tmux.conf b/tmux.conf index 5650979..678e3ee 100644 --- a/tmux.conf +++ b/tmux.conf @@ -24,7 +24,7 @@ bind-key v split-window -h bind-key s split-window -v bind-key p new-window \; set window-status-style fg=white,bg=red 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 E rename-window 'vim'