aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-12 16:59:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-12 16:59:03 +1200
commit1fab6477645f5102268cfa391b44bbb01a87c93b (patch)
tree22b5c7dfb757ebb8a10c68c01cc6fd474db8ecbf /bash
parentMay as well add my Taskwarrior config (diff)
downloaddotfiles-1fab6477645f5102268cfa391b44bbb01a87c93b.tar.gz
dotfiles-1fab6477645f5102268cfa391b44bbb01a87c93b.zip
Tidier layout, start using .bash_profile again
Shouldn't refer to Bash stuff in Bourne shell profile
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_profile6
-rw-r--r--bash/bashrc2
2 files changed, 7 insertions, 1 deletions
diff --git a/bash/bash_profile b/bash/bash_profile
new file mode 100644
index 00000000..aa87667d
--- /dev/null
+++ b/bash/bash_profile
@@ -0,0 +1,6 @@
+# Source Bourne shell profile if it exists
+[[ -r "$HOME/.profile" ]] && source $HOME/.profile
+
+# Source interactive Bash config if it exists
+[[ -r "$HOME/.bashrc" ]] && source $HOME/.bashrc
+
diff --git a/bash/bashrc b/bash/bashrc
index cdfcaffe..4891b61a 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -58,7 +58,7 @@ setterm -bfreq 0 &>/dev/null
stty -ixon &>/dev/null
# Use completion, if available
-[[ -e /etc/bash_completion ]] && source /etc/bash_completion
+[[ -r /etc/bash_completion ]] && source /etc/bash_completion
# I always want a unified diff
alias diff='diff -u'