Added wrapper function for yay (no default action)

This commit is contained in:
Lexi / Zoe 2018-11-01 22:46:08 +01:00
parent 0de43467f3
commit 8a920b5b1c
1 changed files with 11 additions and 0 deletions

11
.bashrc
View File

@ -91,6 +91,17 @@ calc()
# Create and cd to tmp dir # Create and cd to tmp dir
alias cdtmp='cd $(mktemp -d -p ~/tmp/)' alias cdtmp='cd $(mktemp -d -p ~/tmp/)'
# yay without parameters does "pacman -Syu" but I don't it to do this
yay() {
if [ $# -eq 0 ]; then
echo "error: no operation specified (use -h for help)"
return 1
else
command yay "$@"
fi
}
# Bash prompt # Bash prompt
PS1='[\u@\h \W]\$ ' PS1='[\u@\h \W]\$ '