.profile: Add function for song
This replaces old aliases with something functional. Finally.
This commit is contained in:
parent
fb3a4b5132
commit
7f96d3c414
9
.profile
9
.profile
@ -207,6 +207,15 @@ if has git; then
|
|||||||
# Show untracked files
|
# Show untracked files
|
||||||
alias gu='git ls-files . --exclude-standard --others'
|
alias gu='git ls-files . --exclude-standard --others'
|
||||||
fi
|
fi
|
||||||
|
if has ptgdp; then
|
||||||
|
song() {
|
||||||
|
if [ -z "$*" ]; then
|
||||||
|
echo "song: Requires an argument"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
echo "$*" | ptgdp
|
||||||
|
}
|
||||||
|
fi
|
||||||
if has sudo; then
|
if has sudo; then
|
||||||
case $_baseshell in
|
case $_baseshell in
|
||||||
*bash|*zsh)
|
*bash|*zsh)
|
||||||
|
Loading…
Reference in New Issue
Block a user