diff options
Diffstat (limited to 'dot/bashrc')
-rw-r--r-- | dot/bashrc | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -413,6 +413,19 @@ install_spacemacs() | |||
413 | fi | 413 | fi |
414 | } | 414 | } |
415 | 415 | ||
416 | get_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 | |||
416 | local_bashrc=~/.bashrc.$(hostname) | 429 | local_bashrc=~/.bashrc.$(hostname) |
417 | 430 | ||
418 | if [ -f "$local_bashrc" ]; then | 431 | if [ -f "$local_bashrc" ]; then |