Add the bash functions to your profile, either directly in ~/.bash_profile
or preferably by loading the snippets from ~/.bash_profile.d
- for example add the following to your .bash_profile
:
# Run snippets
for script in ~/.bash_profile.d/*.sh ; do
if [ -r $script ] ; then
. $script
fi
done
Source your updated profile and you can then download source vids from Youtube as follows:
Download By default it outputs to ./video.mp4
youtube-dl https://www.youtube.com/watch?v=WPsu4OH9hsk
Download to specific file You can download to a specific location/filename
youtube-dl https://www.youtube.com/watch?v=WPsu4OH9hsk ~/brooklyn-gource.mp4