diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-20 13:54:57 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-20 13:54:57 +1200 |
commit | 866ef5c3794764b089efdcfae1a753e294978663 (patch) | |
tree | b0a2dba4364b0f31fda5ddb8a94ca5feaaded8f1 | |
parent | Turn off control character echo with stty (diff) | |
download | dotfiles-866ef5c3794764b089efdcfae1a753e294978663.tar.gz dotfiles-866ef5c3794764b089efdcfae1a753e294978663.zip |
More conservative expansion for dotfile paths
-rw-r--r-- | bash/bash_profile | 4 | ||||
-rw-r--r-- | bash/bashrc | 2 | ||||
-rw-r--r-- | sh/profile | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/bash/bash_profile b/bash/bash_profile index 3d50e437..c119ddba 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -1,10 +1,10 @@ # Source Bourne shell profile if it exists if [[ -r $HOME/.profile ]]; then - source "$HOME/.profile" + source "$HOME"/.profile fi # Source interactive Bash config if it exists if [[ -r $HOME/.bashrc ]]; then - source "$HOME/.bashrc" + source "$HOME"/.bashrc fi diff --git a/bash/bashrc b/bash/bashrc index 9bb6d8b3..33155b82 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -33,7 +33,7 @@ fi # Load any supplementary scripts if [[ -d $HOME/.bashrc.d ]]; then - for file in "$HOME/.bashrc.d"/*; do + for file in "$HOME"/.bashrc.d/*; do source "$file" done fi @@ -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 |