-
Notifications
You must be signed in to change notification settings - Fork 21
/
.bashenv
49 lines (35 loc) · 1.18 KB
/
.bashenv
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
# In case I ever install Go applications (such as boot2docker).
export GOPATH=$HOME/go
# Use Unicode if available.
if [[ "$LANG" != "en_US.UTF-8" ]]
then
if [ "$(LANG=en_US.UTF-8 locale charmap 2>/dev/null)" = "UTF-8" ]
then
export LANG=en_US.UTF-8
else
export LANG=C
fi
fi
# One Unicode feature is unfortunate: its official collation method
# mixes capitalized filenames in amongst lower-case filenames, breaking
# the traditional Unix assumption that capitalized meta-files like
# Makefile and README will be listed first. So we ask programs to
# revert to a bare 8-bit encoding when doing collation.
export LC_COLLATE=C
# A glibc extension, honored by Google Chrome: set my default paper size
# to Letter.
export LC_PAPER=en_US
# Create neither *.pyc files nor __pycache__ directories.
export PYTHONDONTWRITEBYTECODE=PLEASE
# Prepend my home bin directories to the path if not there already.
for p in $HOME/go/bin $HOME/local/bin $HOME/bin
do
if [[ :"$PATH": != *:"$p":* && -d "$p" ]]
then PATH="$p:$PATH"
fi
done
unset p
# Load any site-specific environment variables I have defined.
if [ -f "$HOME/.localenv" ]
then source "$HOME/.localenv"
fi