diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-05 13:30:14 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-05 13:30:14 +1200 |
commit | 350fc5e6ed4d35638c6493e210dbe7a35b5fa099 (patch) | |
tree | ed398c66b9f9abe45d31b0845e7714d7c421c862 /bash | |
parent | Avoid using builtin names for promptt function arg (diff) | |
download | dotfiles-350fc5e6ed4d35638c6493e210dbe7a35b5fa099.tar.gz dotfiles-350fc5e6ed4d35638c6493e210dbe7a35b5fa099.zip |
More thorough quoting
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bash_profile | 4 | ||||
-rw-r--r-- | bash/bashrc | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bash/bash_profile b/bash/bash_profile index 3b391209..4594b77b 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 7924a7e1..45539977 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -32,9 +32,9 @@ if [[ -r /etc/bash_completion ]]; then fi # Load any supplementary scripts -if [[ -d "$HOME/.bashrc.d" ]]; then - for file in $HOME/.bashrc.d/*; do - source $file +if [[ -d "${HOME}/.bashrc.d" ]]; then + for file in "${HOME}/.bashrc.d"/*; do + source "$file" done fi |