From 5fa30deb20865bdcb966ee362f76a6b82cdb079a Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Thu, 18 Aug 2022 17:15:12 +0200 Subject: [PATCH] fixed +e not working when EDITOR is set to 'emacsclient -t' and the default shell is zsh, fixes #591 --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index a23bdad..fbaa9b2 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" "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=${EDITOR//mvim/vim} && EDITOR=${EDITOR//gvim/vim} && ${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'