summaryrefslogtreecommitdiff
path: root/dot/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'dot/bashrc')
-rw-r--r--dot/bashrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/dot/bashrc b/dot/bashrc
index 2e4ed5d..536bf50 100644
--- a/dot/bashrc
+++ b/dot/bashrc
@@ -413,6 +413,19 @@ install_spacemacs()
413 fi 413 fi
414} 414}
415 415
416get_youtube-dl()
417{
418 local u url
419 if u=$(which youtube-dl)
420 then
421 "$u" -U
422 else
423 url=https://youtube-dl.org/downloads/latest/youtube-dl
424 sudo curl -L "$url" -o /usr/local/bin/youtube-dl
425 sudo chmod a+rx /usr/local/bin/youtube-dl
426 fi
427}
428
416local_bashrc=~/.bashrc.$(hostname) 429local_bashrc=~/.bashrc.$(hostname)
417 430
418if [ -f "$local_bashrc" ]; then 431if [ -f "$local_bashrc" ]; then