diff options
author | Jari Aalto <jari.aalto@cante.net> | 1996-08-26 18:22:31 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:49 +0000 |
commit | 726f63884db0132f01745f1fb4465e6621088ccf (patch) | |
tree | 6c2f7765a890a97e0e513cb539df43283a8f7c4d /examples/startup-files/Bash_profile | |
download | android_external_bash-726f63884db0132f01745f1fb4465e6621088ccf.tar.gz android_external_bash-726f63884db0132f01745f1fb4465e6621088ccf.tar.bz2 android_external_bash-726f63884db0132f01745f1fb4465e6621088ccf.zip |
Imported from ../bash-1.14.7.tar.gz.
Diffstat (limited to 'examples/startup-files/Bash_profile')
-rw-r--r-- | examples/startup-files/Bash_profile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/startup-files/Bash_profile b/examples/startup-files/Bash_profile new file mode 100644 index 0000000..b1b24c0 --- /dev/null +++ b/examples/startup-files/Bash_profile @@ -0,0 +1,20 @@ +# Startup file for bash login shells. +# +default_dir=/usr/local/lib/ + +if [ "$PS1" ]; then + PS1='\u@\h(\#)$ ' + ignoreeof=3 +fi + +LOGIN_SHELL=true + +# If the user has her own init file, then use that one, else use the +# canonical one. +if [ -f ~/.bashrc ]; then + source ~/.bashrc +else if [ -f ${default_dir}Bashrc ]; then + source ${default_dir}Bashrc; + fi +fi + |