Skip to content

Commit

Permalink
fix: get rid of 127 return code
Browse files Browse the repository at this point in the history
  • Loading branch information
Malanius committed Jan 5, 2024
1 parent 990bad3 commit 94c8e69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions scripts/spotify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,5 @@ show_menu() {
)
fi
}

show_menu
8 changes: 2 additions & 6 deletions tmux-spotify.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 94c8e69

Please sign in to comment.