From e1fa32dbd1a26c78ffe72eb690f5512fa1c27f92 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 1 Sep 2016 13:36:51 +1200 Subject: Use terser syntax for path addition --- sh/profile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sh/profile') 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 -- cgit v1.2.3