tmux-sensible
tmux-sensible copied to clipboard
Tmux sensible is returning 1
Hello, and thanks for this configuration plugin.
For some weird reason, tmux-sensible is returning a non ok statuscode (1) when I source the plugins directory. This seems to be happening when it checks the existence of a binded key R, which seems to be the last check it does. Looks like the return value on the if statement is leaking as exit code of the script.
You can check by running
bash -x ~/.tmux/plugins/tmux-sensible/sensible.tmux
.. bla bla bla
+ return 1
+ key_binding_not_set C-n
+ local key=C-n
++ tmux list-keys
++ grep -q 'bind-key[[:space:]]\+\(-r[[:space:]]\+\)\?\(-T prefix[[:space:]]\+\)\?C-n[[:space:]]'
+ return 1
+ key_binding_not_set R
+ local key=R
++ tmux list-keys
++ grep -q 'bind-key[[:space:]]\+\(-r[[:space:]]\+\)\?\(-T prefix[[:space:]]\+\)\?R[[:space:]]'
+ return 1