1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-20 10:53:23 -07:00

add missing shift to yt command

This commit is contained in:
Connor Olding 2018-03-13 09:38:15 +01:00
parent 1835dff1e6
commit 9295b2a24a

View File

@ -80,6 +80,7 @@ twitch() {
yt() {
pushd ~/play >/dev/null
local vid="$1"
shift
# can't be bothered to use substrings since they differ across bash/zsh
if [[ "$(head -c4 <<< "$vid")" != "http" ]]; then
vid="ytdl://$vid"