diff --git a/.zprezto/abra/functions.zsh b/.zprezto/abra/functions.zsh index 219408a..6f698f8 100644 --- a/.zprezto/abra/functions.zsh +++ b/.zprezto/abra/functions.zsh @@ -16,6 +16,24 @@ function twitch { livestreamer "http://www.twitch.tv/${1}" "${${@:2}:-best}" } +function save_stream { + FUNCTION_PRELUDE + + local NAME=$1 + + if [[ ! -d $NAME ]]; then + echo :( + exit 1 + fi + + while true; do + local DATE=$(date +"%Y-%m-%d-%H:%M:%S") + livestreamer "https://twitch.tv/$NAME" -o "$NAME/$DATE.mp4" + sleep 30 + done +} + + function dcp { FUNCTION_PRELUDE diff --git a/.zprezto/runcoms/zprofile b/.zprezto/runcoms/zprofile index 66a6e6e..c331b14 100644 --- a/.zprezto/runcoms/zprofile +++ b/.zprezto/runcoms/zprofile @@ -42,10 +42,10 @@ typeset -gU cdpath fpath mailpath path # ) # Set the list of directories that Zsh searches for programs. -path=( - /usr/local/{bin,sbin} - $path -) +#path=( +# /usr/local/{bin,sbin} +# $path +#) # # Less