-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash.bash_profile
More file actions
41 lines (33 loc) · 900 Bytes
/
bash.bash_profile
File metadata and controls
41 lines (33 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# vim: ft=sh:ts=2:sts=2:et:
###
### mvf
### macos:~/.profile
# [ -e ~/.bashrc-debug ] && echo "[~/.bashrc]: found: ~/.bashrc-debug"
# [ -e ~/.bashrc-verbose ] && echo "[~/.bashrc]: found: ~/.bashrc-verbose"
export _BASHRC_VERBOSE="true"
export _BASHRC_LOGLEVEL="error"
## to remember:
## https://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files
##
## bash login
## 1. /etc/profile
## 2. ~/.bash_profile | ~/.bash_login | ~/.profile
## 3. ~/.bash_profile: source ~/.bashrc
##
## bash logout
## 1. ~/.bash_logout
#xport PS1=""u@\h:\w\n\\$ " # root fallback
export PS1='\u@\h:\w\n\$ '
###
### My Bash 'modules'
###
for file in ~/bash.d/*sh
do
# only executables
if [ -x "${file}" ]
then source "${file}"
fi
done
# Next step: if terminal interative and .bashrc exists...
[[ $- == *i* ]] && [[ -e ~/.bashrc ]] && source ~/.bashrc