tmux-thumbs/tmux-thumbs.tmux

11 lines
338 B
Plaintext
Raw Normal View History

2019-02-04 21:40:45 +00:00
#!/usr/bin/env bash
2019-03-06 17:04:05 +00:00
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DEFAULT_THUMBS_KEY=space
THUMBS_KEY="$(tmux show-option -gqv @thumbs-key)"
2019-05-02 20:20:33 +00:00
THUMBS_KEY=${THUMBS_KEY:-$DEFAULT_THUMBS_KEY}
2021-04-17 11:14:57 +00:00
tmux bind-key "${THUMBS_KEY}" run-shell -b "TMUX_THUMBS_BINARY=$HOME/.cache/cargo/bin/tmux-thumbs ${CURRENT_DIR}/tmux-thumbs.sh"