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:
parent
5fa30deb20
commit
562f9c128e
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ setw -q -g utf8 on
|
|||
set -g history-limit 5000 # boost history
|
||||
|
||||
# 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
|
||||
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
|
||||
|
|
Loading…
Reference in a new issue