diff options
author | EuAndreh <eu@euandre.org> | 2018-12-10 06:58:51 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-12-10 06:58:51 -0200 |
commit | 0d780c19821b9a261b5b5dc56f2104b01326b2d1 (patch) | |
tree | ab6d4da9b8e5bce92a46c939428ba005229479ef | |
parent | Make yt-dl an exported function. (diff) | |
download | dotfiles-0d780c19821b9a261b5b5dc56f2104b01326b2d1.tar.gz dotfiles-0d780c19821b9a261b5b5dc56f2104b01326b2d1.tar.xz |
Make yt-dl alias for yt_dl.
-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" \ |