.profile: Add function for song

This replaces old aliases with something functional. Finally.
This commit is contained in:
Salt 2019-10-21 00:13:10 -05:00
parent fb3a4b5132
commit 7f96d3c414

View File

@ -207,6 +207,15 @@ if has git; then
# Show untracked files
alias gu='git ls-files . --exclude-standard --others'
fi
if has ptgdp; then
song() {
if [ -z "$*" ]; then
echo "song: Requires an argument"
return 1
fi
echo "$*" | ptgdp
}
fi
if has sudo; then
case $_baseshell in
*bash|*zsh)