Skip to content

Tmux sensible is returning 1 #64

@danielo515

Description

@danielo515

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions