From cf7495cd3bef8a8c6370f113b427228b915fdcef Mon Sep 17 00:00:00 2001 From: verschmelzen Date: Sun, 22 Aug 2021 15:20:36 +0300 Subject: [PATCH] Add thumbs-pick command --- tmux-thumbs.tmux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tmux-thumbs.tmux b/tmux-thumbs.tmux index 4fc9355..16179e6 100755 --- a/tmux-thumbs.tmux +++ b/tmux-thumbs.tmux @@ -7,7 +7,8 @@ DEFAULT_THUMBS_KEY=space THUMBS_KEY="$(tmux show-option -gqv @thumbs-key)" THUMBS_KEY=${THUMBS_KEY:-$DEFAULT_THUMBS_KEY} -tmux bind-key "${THUMBS_KEY}" run-shell -b "${CURRENT_DIR}/tmux-thumbs.sh" +tmux set-option -ag command-alias "thumbs-pick=run-shell -b ${CURRENT_DIR}/tmux-thumbs.sh" +tmux bind-key "${THUMBS_KEY}" thumbs-pick BINARY="${CURRENT_DIR}/target/release/thumbs"