add my take and y functions
[~bandali/configs] / zsh / .zshrc.local
... / ...
CommitLineData
1# Base16 Shell
2BASE16_SCHEME="thewildhunt"
3BASE16_SHELL="$HOME/.theme/base16-$BASE16_SCHEME.dark.sh"
4[[ -s $BASE16_SHELL ]] && . $BASE16_SHELL
5
6PATH="$HOME/.local/bin:$PATH"
7
8# take
9function take() {
10 mkdir -p $1
11 cd $1
12}
13
14function y() {
15 cd ~/music
16 youtube-dl -f bestaudio $1
17 for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 "${f%.m4a}.mp3"; rm "$f"; done
18}