aboutsummaryrefslogtreecommitdiff
path: root/bash_profile
diff options
context:
space:
mode:
authorSergey Nazaryev <sergey@nazaryev.ru>2020-10-02 01:11:50 +0300
committerSergey Nazaryev <sergey@nazaryev.ru>2020-10-02 02:19:20 +0300
commite2ae1c1b2a6845a89afd1d7aa5b635adf2ebdbd1 (patch)
tree24a2962faa8df80f45858fc4fe7f18beee963b38 /bash_profile
parentf310168d26d933315d9cfd079dd575d66971f6e5 (diff)
downloaddotfiles-e2ae1c1b2a6845a89afd1d7aa5b635adf2ebdbd1.zip
dotfiles-e2ae1c1b2a6845a89afd1d7aa5b635adf2ebdbd1.tar.gz
dotfiles-e2ae1c1b2a6845a89afd1d7aa5b635adf2ebdbd1.tar.bz2
Major refactoring
Diffstat (limited to 'bash_profile')
-rw-r--r--bash_profile8
1 files changed, 6 insertions, 2 deletions
diff --git a/bash_profile b/bash_profile
index 507b5bf..5f231cc 100644
--- a/bash_profile
+++ b/bash_profile
@@ -1,3 +1,7 @@
-#!/bin/bash
+for script in ${HOME}/.bash_profile.d/*; do
+ if [ -r "${script}" ]; then
+ . "${script}"
+ fi
+done
-[ -f ~/.bashrc ] && . ~/.bashrc
+[ -f "${HOME}/.bashrc" ] && . "${HOME}/.bashrc"