Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ spotify share uri Displays the current song's Spotify URI and c

spotify toggle shuffle Toggles shuffle playback mode.
spotify toggle repeat Toggles repeat playback mode.

spotify -v | --version Shows the shpotify version number.
````

## Authors and contributing
Expand Down
11 changes: 11 additions & 0 deletions spotify
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ showHelp () {
echo;
echo " toggle shuffle # Toggles shuffle playback mode.";
echo " toggle repeat # Toggles repeat playback mode.";
echo;
echo " -v | --version # Shows the shpotify version number.";
}

showVersion() {
echo "shpotify 1.2.0";
}

cecho(){
Expand Down Expand Up @@ -346,8 +352,13 @@ while [ $# -gt 0 ]; do
osascript -e "tell application \"Spotify\" to set player position to $2";
break;;

"-v" | "--version" )
showVersion;
break ;;

"help" | * )
showHelp;
break ;;

esac
done