aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-01 13:36:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-01 13:36:51 +1200
commite1fa32dbd1a26c78ffe72eb690f5512fa1c27f92 (patch)
tree94943584e9deb75c6c9d9eecf8602520423bc686 /sh
parentRemove bold args in cf(1df) and cfr(1df) manpages (diff)
downloaddotfiles-e1fa32dbd1a26c78ffe72eb690f5512fa1c27f92.tar.gz
dotfiles-e1fa32dbd1a26c78ffe72eb690f5512fa1c27f92.zip
Use terser syntax for path addition
Diffstat (limited to 'sh')
-rw-r--r--sh/profile4
1 files changed, 1 insertions, 3 deletions
diff --git a/sh/profile b/sh/profile
index 5dfe0ef3..afc308ea 100644
--- a/sh/profile
+++ b/sh/profile
@@ -1,7 +1,5 @@
# Add ~/.local/bin to PATH if it exists
-if [ -d "$HOME"/.local/bin ] ; then
- PATH=$HOME/.local/bin:$PATH
-fi
+[ -d "$HOME"/.local/bin ] && PATH=$HOME/.local/bin:$PATH
# Load all supplementary scripts in ~/.profile.d
for sh in "$HOME"/.profile.d/*.sh ; do