Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # in response to https://stackoverflow.com/a/40902312/2098939
- # in the current state, tmux complains about the run-shell command since there is no semicolon after the line with 'j' and effectively this results in "bind-key j run-shell 'echo j' bind-key k run-shell 'echo k'" which is not a valid tmux command
- # if the line with 'j' is removed, the config loads, but you'll notice that only i and k are bound, while l and m are not, due to the comment
- unbind i
- unbind j
- unbind k
- unbind l
- unbind m
- if-shell -b 'true' \
- "bind-key i run-shell 'echo i'; \
- bind-key j run-shell 'echo j' \
- bind-key k run-shell 'echo k' \
- #foo \
- bind-key l run-shell 'echo l'; \
- bind-key m run-shell 'echo m'; \
- "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement