-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot.bash_profile
51 lines (39 loc) · 986 Bytes
/
dot.bash_profile
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
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# vim:ft=sh:
###
### mvf
### macos:~/.profile
[ -e ~/.shell-debug-enable ] && echo "~/.shell-debug-enable: [~/.bash_profile]"
## 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
PS1='\u@\h:\w\n\$ '
function echo_source() {
echo "$1" && source "$1"
}
###
### My Bash 'modules'
###
for file in ~/bash.d/*sh
do
# only executables
if [ -x "$file" ]
then
[ -e ~/.shell-debug-enable ] && echo "[${file}]"
source "$file"
fi
done
# if interative and exists...
[[ $- == *i* ]] && [[ -e ~/.bashrc ]] && source ~/.bashrc
###
### Add-ons
###
##[ -f /usr/local/Cellar/coreutils/8.5/aliases ] && echo_source /usr/local/Cellar/coreutils/8.5/aliases
export JAVA_TOOLS_OPTIONS="-Dlog4j2.formatMsgNoLookups=true"