1
0
Fork 0
mirror of synced 2024-12-21 22:31:06 -05:00

fixed <prefix>+e not working when EDITOR is set to 'emacsclient -t' and the default shell is zsh (2), fixes #593

${EDITOR//gvim/vim} and ${EDITOR//mvim/vim} have been introduced to fix #416,
however the replace all substitution is not POSIX and is not supported by termux
or dash

the proper fix for #416 is to set EDITOR to 'gvim -f' or 'mvim -f'
This commit is contained in:
Luis Davim 2022-08-19 23:37:12 +01:00 committed by Gregory Pakosz
parent 5fa30deb20
commit 562f9c128e

View file

@ -26,7 +26,7 @@ setw -q -g utf8 on
set -g history-limit 5000 # boost history set -g history-limit 5000 # boost history
# edit configuration # edit configuration
bind e new-window -n "~/.tmux.conf.local" sh -c 'EDITOR=${EDITOR//mvim/vim} && EDITOR=${EDITOR//gvim/vim} && ${EDITOR:-vim} ~/.tmux.conf.local && tmux source ~/.tmux.conf && tmux display "~/.tmux.conf sourced"' bind e new-window -n "~/.tmux.conf.local" sh -c '${EDITOR:-vim} ~/.tmux.conf.local && tmux source ~/.tmux.conf && tmux display "~/.tmux.conf sourced"'
# reload configuration # reload configuration
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'