wip
This commit is contained in:
parent
aed1ce476d
commit
46b7c0f0f4
|
@ -20,7 +20,7 @@ fi
|
||||||
|
|
||||||
function binary_or_brew_label() {
|
function binary_or_brew_label() {
|
||||||
if [[ "$PLATFORM" == "Darwin" ]]; then
|
if [[ "$PLATFORM" == "Darwin" ]]; then
|
||||||
echo "Install from source"
|
echo "Install with brew"
|
||||||
else
|
else
|
||||||
echo "Download binary"
|
echo "Download binary"
|
||||||
fi
|
fi
|
||||||
|
@ -28,9 +28,9 @@ function binary_or_brew_label() {
|
||||||
|
|
||||||
function binary_or_brew_action() {
|
function binary_or_brew_action() {
|
||||||
if [[ "$PLATFORM" == "Darwin" ]]; then
|
if [[ "$PLATFORM" == "Darwin" ]]; then
|
||||||
echo "download-binary"
|
|
||||||
else
|
|
||||||
echo "install-with-brew"
|
echo "install-with-brew"
|
||||||
|
else
|
||||||
|
echo "download-binary"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,9 @@ tmux display-menu -T "tmux-fingers" \
|
||||||
"- It looks like it is the first time you are running the plugin. We need the binary first for things to work. " "" "" \
|
"- It looks like it is the first time you are running the plugin. We need the binary first for things to work. " "" "" \
|
||||||
"- " "" ""\
|
"- " "" ""\
|
||||||
"" \
|
"" \
|
||||||
"$(binary_or_brew_label)" b "display-popup 'bash $CURRENT_DIR/$0 $(binary_or_brew_label)" \
|
"$(binary_or_brew_label)" b "popup \"bash $CURRENT_DIR/install-wizard.sh $(binary_or_brew_action)\"" \
|
||||||
"Build from source" s "display-popup 'bash $CURRENT_DIR/$0 install-from-source'" \
|
"Build from source" s "popup \"bash $CURRENT_DIR/install-wizard.sh install-from-source\"" \
|
||||||
"" \
|
"" \
|
||||||
"Exit" q ""
|
"Exit" q ""
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
if [ ! -f "$CURRENT_DIR/bin/tmux-fingers" ]; then
|
if [ ! -f "$CURRENT_DIR/bin/tmux-fingers" ]; then
|
||||||
echo "tmux-fingers not found. Please run ./install.sh"
|
bash $CURRENT_DIR/install-wizard.sh
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"$CURRENT_DIR/bin/tmux-fingers" "load-config"
|
"$CURRENT_DIR/bin/tmux-fingers" "load-config"
|
||||||
|
|
Loading…
Reference in New Issue