Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 1.3 kB view raw
1diff --git i/tmux-thumbs.sh w/tmux-thumbs.sh 2index 7e060e8..e7f0c57 100755 3--- i/tmux-thumbs.sh 4+++ w/tmux-thumbs.sh 5@@ -1,22 +1,6 @@ 6 #!/usr/bin/env bash 7 set -Eeu -o pipefail 8 9-# Setup env variables to be compatible with compiled and bundled installations 10-CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 11-RELEASE_DIR="${CURRENT_DIR}/target/release" 12- 13-THUMBS_BINARY="${RELEASE_DIR}/thumbs" 14-TMUX_THUMBS_BINARY="${RELEASE_DIR}/tmux-thumbs" 15-VERSION=$(grep 'version =' "${CURRENT_DIR}/Cargo.toml" | grep -o "\".*\"" | sed 's/"//g') 16- 17-if [ ! -f "$THUMBS_BINARY" ]; then 18- tmux split-window "cd ${CURRENT_DIR} && bash ./tmux-thumbs-install.sh" 19- exit 20-elif [[ $(${THUMBS_BINARY} --version) != "thumbs ${VERSION}" ]]; then 21- tmux split-window "cd ${CURRENT_DIR} && bash ./tmux-thumbs-install.sh update" 22- exit 23-fi 24- 25 function get-opt-value() { 26 tmux show -vg "@thumbs-${1}" 2> /dev/null 27 } 28@@ -35,7 +19,7 @@ function get-opt-arg() { 29 fi 30 } 31 32-PARAMS=(--dir "${CURRENT_DIR}") 33+PARAMS=(--dir @tmuxThumbsDir@) 34 35 function add-param() { 36 local type opt arg 37@@ -50,4 +34,4 @@ add-param upcase-command string 38 add-param multi-command string 39 add-param osc52 boolean 40 41-"${TMUX_THUMBS_BINARY}" "${PARAMS[@]}" || true 42+@tmuxThumbsDir@/tmux-thumbs "${PARAMS[@]}" || true