Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 1.2 kB view raw
1diff --git a/tmux-fingers.tmux b/tmux-fingers.tmux 2index f15b509..a14e312 100755 3--- a/tmux-fingers.tmux 4+++ b/tmux-fingers.tmux 5@@ -1,35 +1,4 @@ 6 #!/usr/bin/env bash 7 8-CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 9- 10-if command -v "tmux-fingers" &>/dev/null; then 11- FINGERS_BINARY="tmux-fingers" 12-elif [[ -f "$CURRENT_DIR/bin/tmux-fingers" ]]; then 13- FINGERS_BINARY="$CURRENT_DIR/bin/tmux-fingers" 14-fi 15- 16-if [[ -z "$FINGERS_BINARY" ]]; then 17- tmux run-shell -b "bash $CURRENT_DIR/install-wizard.sh" 18- exit 0 19-fi 20- 21-CURRENT_FINGERS_VERSION="$($FINGERS_BINARY version)" 22- 23-pushd $CURRENT_DIR &> /dev/null 24-CURRENT_GIT_VERSION=$(cat shard.yml | grep "^version" | cut -f2 -d':' | sed "s/ //g") 25-popd &> /dev/null 26- 27-SKIP_WIZARD=$(tmux show-option -gqv @fingers-skip-wizard) 28-SKIP_WIZARD=${SKIP_WIZARD:-0} 29- 30-if [ "$SKIP_WIZARD" = "0" ] && [ "$CURRENT_FINGERS_VERSION" != "$CURRENT_GIT_VERSION" ]; then 31- tmux run-shell -b "FINGERS_UPDATE=1 bash $CURRENT_DIR/install-wizard.sh" 32- 33- if [[ "$?" != "0" ]]; then 34- echo "Something went wrong while updating tmux-fingers. Please try again." 35- exit 1 36- fi 37-fi 38- 39-tmux run "$FINGERS_BINARY load-config" 40+tmux run "@tmuxFingersDir@/tmux-fingers load-config" 41 exit $?