tmux-fingers/tmux-fingers.tmux

15 lines
461 B
Bash
Executable File

#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
tmux run -b "$CURRENT_DIR/scripts/health-check.sh"
# 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 bind-key $FINGERS_KEY run-shell "$CURRENT_DIR/scripts/tmux-fingers.sh"