tmux-sensible icon indicating copy to clipboard operation
tmux-sensible copied to clipboard

Tmux sensible is returning 1

Open danielo515 opened this issue 3 years ago • 0 comments

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

danielo515 avatar Apr 24 '22 11:04 danielo515