summaryrefslogtreecommitdiff
path: root/dot_zsh/functions/twitch
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2020-01-22 19:21:48 -0500
committerChloe Kudryavtsev <toast@toast.cafe>2020-01-22 19:21:48 -0500
commit2f30fb62469971a5506ac38f682e3dde542fae52 (patch)
treecfdaac63aa712ba7252a78c794155b89519faa3f /dot_zsh/functions/twitch
parentzsh/fuzzy: remove redundant space (diff)
zsh/twitch: check for streamlink bin
Diffstat (limited to '')
-rw-r--r--dot_zsh/functions/twitch1
1 files changed, 1 insertions, 0 deletions
diff --git a/dot_zsh/functions/twitch b/dot_zsh/functions/twitch
index 974649d..8b852f4 100644
--- a/dot_zsh/functions/twitch
+++ b/dot_zsh/functions/twitch
@@ -1,5 +1,6 @@
#!/bin/zsh
[[ $# -gt 0 ]] || return
+(( $+commands[streamlink] )) || return
zstyle -s :function:twitch ${1:l} stream || stream=${1:l}
shift
streamlink twitch.tv/$stream "$@"