aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-04-29 17:28:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-04-29 17:28:18 +1200
commitbf632725f7a2d6dafc74b523582e1b7137618251 (patch)
tree06de671b50c2ef1f18f701279068f0f8719c12f8 /bash/bashrc.d
parentKeep OLDPWD between logins (diff)
downloaddotfiles-bf632725f7a2d6dafc74b523582e1b7137618251.tar.gz
dotfiles-bf632725f7a2d6dafc74b523582e1b7137618251.zip
Only print line if at least one arg
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/pa.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash/bashrc.d/pa.bash b/bash/bashrc.d/pa.bash
index fc68ac28..6c3531f0 100644
--- a/bash/bashrc.d/pa.bash
+++ b/bash/bashrc.d/pa.bash
@@ -1,5 +1,7 @@
# Print arguments
pa() {
- printf '%s\n' "$@"
+ if (($#)) ; then
+ printf '%s\n' "$@"
+ fi
}