.profile: load .bashrc when bash is called as a login shell
[config/sh.git] / .profile
1 #!/bin/sh
2
3 # Initialization file for every interactive posix shell,
4 # especially useful for dash.
5 ENV="${HOME}/.shinit"; export ENV
6
7 # if running bash
8 if [ -n "$BASH_VERSION" ]; then
9     # include .bashrc if it exists
10     if [ -f "$HOME/.bashrc" ]; then
11         . "$HOME/.bashrc"
12     fi
13 fi