aboutsummaryrefslogtreecommitdiff
path: root/sh/profile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-31 17:26:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-31 17:26:30 +1200
commitf5ed4cd090b321064039441e40fe46a6995abf9a (patch)
tree371166922ae8e079eca565322496068d658b00ba /sh/profile
parentPlace missing quotes (diff)
downloaddotfiles-f5ed4cd090b321064039441e40fe46a6995abf9a.tar.gz
dotfiles-f5ed4cd090b321064039441e40fe46a6995abf9a.zip
Use standard structure for if/for in shell
Mostly for clarity reasons; using this syntax: if [ condition ]; then commands fi As opposed to: if [ condition ] then commands fi Or: [ condition ] && command
Diffstat (limited to 'sh/profile')
-rw-r--r--sh/profile10
1 files changed, 5 insertions, 5 deletions
diff --git a/sh/profile b/sh/profile
index d5a2fec8..0a1e12a3 100644
--- a/sh/profile
+++ b/sh/profile
@@ -6,14 +6,14 @@ export VISUAL="$EDITOR"
export PAGER='less'
# Add ~/.local/bin to PATH
-[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
+if [ -d "$HOME/.local/bin" ]; then
+ PATH="$HOME/.local/bin:$PATH"
+fi
export PATH
# Load any supplementary scripts
-if [ -d "$HOME/.profile.d" ]
-then
- for file in $HOME/.profile.d/*
- do
+if [ -d "$HOME/.profile.d" ]; then
+ for file in $HOME/.profile.d/*; do
. $file
done
fi