git.fiddlerwoaroof.com
Browse code

Fix tmux.conf emacs detection

fiddlerwoaroof authored on 13/06/2017 06:21:37
Showing 1 changed files
... ...
@@ -3,7 +3,7 @@ set -g default-terminal "screen-noit"
3 3
 setw -g mode-keys vi
4 4
 
5 5
 # smart pane switching with awareness of vim splits
6
-bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq e emacs -e vim && tmux send-keys C-h) || tmux select-pane -L"
6
+bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq -e emacs -e vim && tmux send-keys C-h) || tmux select-pane -L"
7 7
 bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq -e emacs -e vim && tmux send-keys C-j) || tmux select-pane -D"
8 8
 bind j select-pane -D
9 9
 bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq -e emacs -e vim && tmux send-keys C-k) || tmux select-pane -U"