From 94c8e699c1aee1f53898367e9c92a945f9a22f48 Mon Sep 17 00:00:00 2001 From: Malanius Privierre Date: Fri, 5 Jan 2024 14:54:31 +0100 Subject: [PATCH] fix: get rid of 127 return code --- scripts/spotify.sh | 2 ++ tmux-spotify.tmux | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/spotify.sh b/scripts/spotify.sh index 4d1750c..081b7d2 100755 --- a/scripts/spotify.sh +++ b/scripts/spotify.sh @@ -113,3 +113,5 @@ show_menu() { ) fi } + +show_menu diff --git a/tmux-spotify.tmux b/tmux-spotify.tmux index 8beb3b7..59aa640 100755 --- a/tmux-spotify.tmux +++ b/tmux-spotify.tmux @@ -2,9 +2,5 @@ CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -main() { - # TODO: ideally make this configurable, see https://github.com/xamut/tmux-spotify/pull/1 - $(tmux bind-key -T prefix S run -b "source $CURRENT_DIR/scripts/spotify.sh && show_menu") -} - -main +# TODO: ideally make this configurable, see https://github.com/xamut/tmux-spotify/pull/1 +tmux bind-key -T prefix S run -b "$CURRENT_DIR/scripts/spotify.sh"