From 562f9c128e627d55b0fa8ca71a205a421702ffe0 Mon Sep 17 00:00:00 2001 From: Luis Davim Date: Fri, 19 Aug 2022 23:37:12 +0100 Subject: [PATCH] fixed +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' --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index fbaa9b2..b71bbae 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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'