X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/686c6d84bdc8407e2655dcdf708882e712dbd37d..a341f8e43a897def62d97bb0aae3b4bb77f189a1:/zsh/.zshrc.local diff --git a/zsh/.zshrc.local b/zsh/.zshrc.local index 7600202..496f94b 100644 --- a/zsh/.zshrc.local +++ b/zsh/.zshrc.local @@ -4,4 +4,16 @@ BASE16_SHELL="$HOME/.theme/base16-$BASE16_SCHEME.dark.sh" [[ -s $BASE16_SHELL ]] && . $BASE16_SHELL PATH="$HOME/.local/bin:$PATH" +PATH="`ruby -e 'print Gem.user_dir'`/bin:$PATH" +# take +function take() { + mkdir -p $1 + cd $1 +} + +function y() { + cd ~/music + youtube-dl -f bestaudio $1 + for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 "${f%.m4a}.mp3"; rm "$f"; done +}