DavidFrahm / setup

Automated setup for Mac OS X
2 stars 1 forks source link

Add solution for aliases #4

Open DavidFrahm opened 9 years ago

DavidFrahm commented 9 years ago

Use separate dotfile for aliases.

DavidFrahm commented 9 years ago

One solution: https://github.com/mathiasbynens/dotfiles/blob/3a47ebe1faf72222b1915853a3ce093ac8908853/.bash_profile

# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
    [ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;