projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8c17e1b
)
add my take and y functions
author
Amin Bandali
<me@aminb.org>
Sun, 26 Oct 2014 15:24:14 +0000
(11:24 -0400)
committer
Amin Bandali
<me@aminb.org>
Sun, 26 Oct 2014 15:24:14 +0000
(11:24 -0400)
zsh/.zshrc.local
patch
|
blob
|
blame
|
history
diff --git
a/zsh/.zshrc.local
b/zsh/.zshrc.local
index
7600202
..
5641d58
100644
(file)
--- 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"
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
+}