forked from rrichardsonv/dotfilez
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile
43 lines (34 loc) · 824 Bytes
/
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
#!/bin/bash
# combo of:
# - 4U6U57/dotfiles project
# - brousalis/dotfiles
sourcer() {
# sources files that actually exist
# shellcheck disable=SC1090
if [[ -r "$1" ]] && [[ -f "$1" ]]; then source "$1"; fi
}
export -f sourcer
verbose_sourcer() {
if [[ -r "$1" ]] && [[ -f "$1" ]]; then
source "$1"
else
echo "¯\_(ツ)_/¯"
fi
}
export -f verbose_sourcer
# load files
for file in ~/.dotfilez/bash/{bash_prompt,exports,functions,aliases}; do
verbose_sourcer "$file"
done
unset file
sourcer ~/.dotfilez/personal
# something
verbose_sourcer ~/.bashrc
# fix font smoothing on macs
if [[ $platform = 'darwin' ]]; then
defaults -currentHost write -g AppleFontSmoothing -int 2
fi
# asdf version management
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
export PATH=~/.local/bin:$PATH