From e210e10b8a830fd2e79987e8cd73e4a9ec8cc266 Mon Sep 17 00:00:00 2001 From: Andrey Anurin Date: Wed, 22 Aug 2018 20:10:30 +0300 Subject: [PATCH] svxf at Wed Aug 22 20:10:30 MSK 2018 --- .zprezto/abra/functions.zsh | 18 ++++++++++++++++++ .zprezto/runcoms/zprofile | 8 ++++---- 2 files changed, 22 insertions(+), 4 deletions(-) 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