aboutsummaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2022-04-14 19:39:12 +0200
committerThorsten Töpper <atsutane@freethoughts.de>2022-04-14 19:39:12 +0200
commit4299cc65e74a3f1118b9fa69c7f4048630750776 (patch)
treefea7a8aab0c3447f1e1a3854d67da33f4722e6ae /zshrc
parenta6a66db6b4394ac6381b7ed4c834279dae68d7de (diff)
downloaddotfiles-4299cc65e74a3f1118b9fa69c7f4048630750776.tar.gz
dotfiles-4299cc65e74a3f1118b9fa69c7f4048630750776.tar.bz2
zshrc: aurclone a bit more PEBKAC safe.
Diffstat (limited to 'zshrc')
-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"
}