Created
May 15, 2020 19:39
-
-
Save johnlindquist/bb46302a07d6c5f7a42e7e68e8971549 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chromeURL(){ | |
echo $(osascript -e 'tell application "Google Chrome" to return URL of active tab of front window') | |
} | |
sample(){ | |
cd ~/Music/Samples | |
youtube-dl --extract-audio --no-playlist --audio-format mp3 \ | |
$(chromeURL) | |
open . | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment