aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-20 13:54:57 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-20 13:54:57 +1200
commit866ef5c3794764b089efdcfae1a753e294978663 (patch)
treeb0a2dba4364b0f31fda5ddb8a94ca5feaaded8f1 /sh
parentTurn off control character echo with stty (diff)
downloaddotfiles-866ef5c3794764b089efdcfae1a753e294978663.tar.gz
dotfiles-866ef5c3794764b089efdcfae1a753e294978663.zip
More conservative expansion for dotfile paths
Diffstat (limited to 'sh')
-rw-r--r--sh/profile6
1 files changed, 3 insertions, 3 deletions
diff --git a/sh/profile b/sh/profile
index 164d765c..5e4f5891 100644
--- a/sh/profile
+++ b/sh/profile
@@ -8,14 +8,14 @@ PAGER='less'
export PAGER
# Add ~/.local/bin to PATH if it exists
-if [ -d "$HOME/.local/bin" ]; then
+if [ -d "$HOME"/.local/bin ]; then
PATH="$HOME/.local/bin:$PATH"
fi
export PATH
# Load all supplementary scripts in ~/.profile.d
-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