Created
December 22, 2014 05:11
-
-
Save CarlosMecha/3017b58488b84a98da15 to your computer and use it in GitHub Desktop.
Add additional configuration to the user's Bash profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Append those lines to the user's `.bashrc` | |
# | |
# If the `.bash.d` folder exists, it would 'source' any `sh` script file. | |
# Keep your configuration organized :) | |
# | |
if [ -d ~/.bash.d ]; then { | |
for i in ~/.bash.d/*.sh; do { | |
if [ -r $i ]; then { | |
source $i; | |
} fi; | |
} done; | |
unset i; | |
} fi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing!
I'm not sure whether it was intentional or not, but you don't really need the curly braces or semicolon at the end of each statement, so this could be simplified to: