Closed wangduanduan closed 9 months ago
➜ ~ rg 'bind e' .tmux.conf
31:bind e new-window -n "#{TMUX_CONF_LOCAL}" sh -c '${EDITOR:-vim} "$TMUX_CONF_LOCAL" && "$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF" \; display "$TMUX_CONF_LOCAL sourced"'
after install vim, the <prefix - e> worked !
i use zsh, but the sh -c
use bash, may be the bash can not find $EDITOR
Hello @wangduanduan,
Where do you define EDITOR
to nvim
? In your ~/.zshrc
?
Hello @wangduanduan,
Where do you define
EDITOR
tonvim
? In your~/.zshrc
?
yes, in .zshrc
Hello @wangduanduan 👋
Can you please uninstall vim
and try again with the gh-679
branch?
I don't think this fix is working on my MacOS M1. I simply replaced "EDITOR=$EDITOR" to "EDITOR=nvim" and it works.
My tmux version is 3.4
. The repository I just downloaded today so it should be up-to-date.
Maybe this will help reproduce the problem (or maybe it is just my computer):
:new-window -e "EDITOR=$EDITOR" sh -c '$EDITOR'
where $EDITOR
is set to something that is not defined in sh
.
The EDITOR
environment variable has to be set outside of tmux
yes I did set it on my .zshrc
file.
You need to relaunch the tmux server process
Thank you. Look like it is working for me now.
But I don't really understand why. Yesterday I tried to kill the session and create a new one but it still does not work. Today I tried pkill -f tmux
then start another session and it works.
🤷♂️
.tmux version
tmux version
EDITOR
when press
<c-b> e
, nothing happen,416