Added wrapper function for yay (no default action)
This commit is contained in:
parent
0de43467f3
commit
8a920b5b1c
11
.bashrc
11
.bashrc
|
|
@ -91,6 +91,17 @@ calc()
|
|||
# Create and cd to tmp dir
|
||||
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
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue