From 7f96d3c414e7f3e38e43dfe36216c7014512057e Mon Sep 17 00:00:00 2001 From: Salt Date: Mon, 21 Oct 2019 00:13:10 -0500 Subject: [PATCH] .profile: Add function for song This replaces old aliases with something functional. Finally. --- .profile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.profile b/.profile index 53111ee6..24d3d4b9 100755 --- a/.profile +++ b/.profile @@ -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)