From f5cf7eaec8d26c56740b42e6d2bdfeb624dbc899 Mon Sep 17 00:00:00 2001 From: Jorge Morante Date: Tue, 2 May 2017 20:47:52 +0200 Subject: [PATCH] Revert "oh shit" This reverts commit 3683c9f4a049b3665ec3359981743c405b3bd561. --- tmux-fingers.tmux | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tmux-fingers.tmux diff --git a/tmux-fingers.tmux b/tmux-fingers.tmux new file mode 100755 index 0000000..eb9ee2b --- /dev/null +++ b/tmux-fingers.tmux @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# tmux run-shell does not have color support +tmux new-session -d "bash --norc --noprofile $CURRENT_DIR/scripts/config.sh" + +DEFAULT_FINGERS_KEY="F" +FINGERS_KEY=$(tmux show-option -gqv @fingers-key) +FINGERS_KEY=${FINGERS_KEY:-$DEFAULT_FINGERS_KEY} + +tmux run -b "$CURRENT_DIR/scripts/health-check.sh" +tmux bind-key $FINGERS_KEY run-shell "tmux capture-pane -p | $CURRENT_DIR/scripts/tmux-fingers.sh"