aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index ca061e7..fdf2213 100644
--- a/zshrc
+++ b/zshrc
@@ -21,6 +21,10 @@ alias ltr='ls -ltr --color'
function aurclone () {
+ if [ -z "${1}" ]; then
+ echo "Usage: aurclone PKGNAME"
+ return
+ fi
git clone "https://aur.archlinux.org/${1}.git"
}