diff options
author | Amin Bandali <me@aminb.org> | 2014-10-26 11:24:14 -0400 |
---|---|---|
committer | Amin Bandali <me@aminb.org> | 2014-10-26 11:24:14 -0400 |
commit | b6b6b06a3927fd01046b94c5d5c0b875b332baf7 (patch) | |
tree | 41c9ded6059a036382b3602846a1c785d0b1de41 /zsh | |
parent | 8c17e1b67d7b10dba95414c3fdf8793ee1c5acbe (diff) | |
download | configs-b6b6b06a3927fd01046b94c5d5c0b875b332baf7.tar.gz configs-b6b6b06a3927fd01046b94c5d5c0b875b332baf7.tar.xz configs-b6b6b06a3927fd01046b94c5d5c0b875b332baf7.zip |
add my take and y functions
Diffstat (limited to '')
-rw-r--r-- | zsh/.zshrc.local | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/zsh/.zshrc.local b/zsh/.zshrc.local index 7600202..5641d58 100644 --- a/zsh/.zshrc.local +++ b/zsh/.zshrc.local @@ -5,3 +5,14 @@ BASE16_SHELL="$HOME/.theme/base16-$BASE16_SCHEME.dark.sh" PATH="$HOME/.local/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 +} |