fix fish support and run config in clean bash env

This commit is contained in:
Jorge Morante 2017-05-01 12:05:31 +02:00
parent c34bc91ba8
commit 3a335e4f37
1 changed files with 2 additions and 2 deletions

View File

@ -3,11 +3,11 @@
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# tmux run-shell does not have color support
tmux new-session -d "$CURRENT_DIR/scripts/config.sh"
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 2> $CURRENT_DIR/../fingers.log"
tmux bind-key $FINGERS_KEY run-shell "tmux capture-pane -p | $CURRENT_DIR/scripts/tmux-fingers.sh"