13 lines
234 B
Bash
13 lines
234 B
Bash
|
|
if [[ $OSTYPE == darwin* ]]; then
|
|
alias mpdi='mpd ~/.config/mpd/mpd.conf'
|
|
fi
|
|
|
|
mpca() {
|
|
local files=()
|
|
for file in $@; do
|
|
files+="$(realpath --relative-to="$HOME/music" "$file")"
|
|
done
|
|
mpc add ${files[@]}
|
|
}
|