helm/shell/mpd/aliases.zsh

15 lines
283 B
Bash
Raw Normal View History

if [[ $OSTYPE == darwin* ]]; then
alias mpdi='mpd ~/.config/mpd/mpd.conf'
fi
2016-12-25 21:27:25 -08:00
alias mpc='mpc -h "$HOME/.config/mpd/mpd.sock"'
mpca() {
local files=()
for file in $@; do
files+="$(realpath --relative-to="$HOME/music" "$file")"
done
mpc add ${files[@]}
}