Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tmux sensible is returning 1 #64

Open
danielo515 opened this issue Apr 24, 2022 · 0 comments
Open

Tmux sensible is returning 1 #64

danielo515 opened this issue Apr 24, 2022 · 0 comments

Comments

@danielo515
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant