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