projects
/
~bandali
/
configs
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use youtube-dl's own switches for y function
[~bandali/configs]
/
zsh
/
.zshrc.local
diff --git
a/zsh/.zshrc.local
b/zsh/.zshrc.local
index
7600202
..
be7ad02
100644
(file)
--- a/
zsh/.zshrc.local
+++ b/
zsh/.zshrc.local
@@
-4,4
+4,15
@@
BASE16_SHELL="$HOME/.theme/base16-$BASE16_SCHEME.dark.sh"
[[ -s $BASE16_SHELL ]] && . $BASE16_SHELL
PATH="$HOME/.local/bin:$PATH"
[[ -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 --extract-audio --audio-format mp3 --audio-quality 0 $1
+}