sh: Fix quoting discipline in tmux-thumbs.tmux

This commit is contained in:
Robert Estelle 2020-07-29 13:49:18 -07:00 committed by Ferran Basora
parent 92926c73f9
commit b355406972

View File

@ -2,11 +2,12 @@
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DEFAULT_THUMBS_KEY="space" DEFAULT_THUMBS_KEY=space
THUMBS_KEY=$(tmux show-option -gqv @thumbs-key)
THUMBS_KEY="$(tmux show-option -gqv @thumbs-key)"
THUMBS_KEY=${THUMBS_KEY:-$DEFAULT_THUMBS_KEY} THUMBS_KEY=${THUMBS_KEY:-$DEFAULT_THUMBS_KEY}
tmux bind-key $THUMBS_KEY run-shell -b "${CURRENT_DIR}/tmux-thumbs.sh" tmux bind-key "${THUMBS_KEY}" run-shell -b "${CURRENT_DIR}/tmux-thumbs.sh"
BINARY="${CURRENT_DIR}/target/release/thumbs" BINARY="${CURRENT_DIR}/target/release/thumbs"