diff options
-rw-r--r-- | bash/aliases.sh | 1 | ||||
-rw-r--r-- | bash/youtube.sh | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bash/aliases.sh b/bash/aliases.sh index 772cded..a8205d7 100644 --- a/bash/aliases.sh +++ b/bash/aliases.sh @@ -6,6 +6,7 @@ alias open="xdg-open" alias ros="rlwrap ros -l ~/.sbclrc" alias l="ls -lahp" alias ll="ls -lhp" +alias yt-dl="yt_dl" isLinux && { alias copy="tr -d '\n' | xclip -sel clip" } diff --git a/bash/youtube.sh b/bash/youtube.sh index 3c5b56e..584d09b 100644 --- a/bash/youtube.sh +++ b/bash/youtube.sh @@ -5,10 +5,10 @@ export DEFAULT_INC_STEP=10 export YT_TEMPLATE="~/Downloads/yt-dl/%(uploader)s/%(upload_date)s %(title)s.%(ext)s" # Always downloads video, doesn't look at the download-archive -yt-dl() { +yt_dl() { youtube-dl "$1" -o "$YT_TEMPLATE" } -export -f yt-dl +export -f yt_dl download() { youtube-dl "$1" \ |