fix(tmux): ensure emacs process detection works with various macOS builds on macOS

This commit is contained in:
2020-09-02 00:37:33 +01:00
parent 2a2b150810
commit d38eb63461

View File

@@ -52,7 +52,7 @@ bind Enter resize-pane -Z
bind C-Enter resize-pane -Z
# Enable smart pane switching that's Emacs aware.
is_emacs='echo "#{pane_current_command}" | grep -iqE "(^|\/)emacs$"'
is_emacs='echo "#{pane_current_command}" | grep -iqE "(^|\/)emacs(-[^\/]+)?$"'
# Use Alt-[i/k/j/l] keys without prefix key to switch panes if current pane is
# not running Emacs. If the pane is running Emacs, let Emacs receive the