From 0f4e3d4a1523b8e32a2f58080962489cec5507dd Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Fri, 17 Jan 2020 13:51:08 -0500 Subject: zsh: add twitch function --- dot_zsh/functions/twitch | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 dot_zsh/functions/twitch (limited to 'dot_zsh/functions') diff --git a/dot_zsh/functions/twitch b/dot_zsh/functions/twitch new file mode 100644 index 0000000..974649d --- /dev/null +++ b/dot_zsh/functions/twitch @@ -0,0 +1,5 @@ +#!/bin/zsh +[[ $# -gt 0 ]] || return +zstyle -s :function:twitch ${1:l} stream || stream=${1:l} +shift +streamlink twitch.tv/$stream "$@" -- cgit v1.2.3