fix spotify alias + add baton spotify cli
This commit is contained in:
parent
0d9df48b1a
commit
02fa048057
@ -148,6 +148,23 @@ pip install -r requirements.txt
|
|||||||
# pip3 install pipenv
|
# pip3 install pipenv
|
||||||
# pyenv install 3.6.0
|
# pyenv install 3.6.0
|
||||||
|
|
||||||
|
# Install baton (CLI to manage Spotify playback) https://github.com/joshuathompson/baton
|
||||||
|
case "$(uname -s)" in
|
||||||
|
Darwin)
|
||||||
|
echo 'Mac OS X'
|
||||||
|
curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-darwin-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton
|
||||||
|
;;
|
||||||
|
|
||||||
|
Linux)
|
||||||
|
echo 'Linux'
|
||||||
|
curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-linux-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo 'Non supported OS'
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Upgrade
|
# Upgrade
|
||||||
~/.scripts/upgrade.sh
|
~/.scripts/upgrade.sh
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ function bookmarks() {
|
|||||||
open -na "Google Chrome" --args "https://github.com/MorganGeek/bookmarks/blob/master/README.md"
|
open -na "Google Chrome" --args "https://github.com/MorganGeek/bookmarks/blob/master/README.md"
|
||||||
}
|
}
|
||||||
function spotify() {
|
function spotify() {
|
||||||
open -na "Google Chrome" --args "https://open.spotify.com/search/results/$*"
|
open -na "Google Chrome" --args "https://open.spotify.com/search/$*"
|
||||||
}
|
}
|
||||||
function lob() {
|
function lob() {
|
||||||
open -na "Google Chrome" --args "https://lobste.rs"
|
open -na "Google Chrome" --args "https://lobste.rs"
|
||||||
|
Loading…
Reference in New Issue
Block a user