-
Notifications
You must be signed in to change notification settings - Fork 1
/
bash_profile
35 lines (30 loc) · 1.06 KB
/
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
# Language
LANG=ja_JP.UTF-8; export LANG
__CF_USER_TEXT_ENCODING='0x1F5:0x08000100:14'; export __CF_USER_TEXT_ENCODING;
# Path
PATH="/usr/bin:/usr/sbin:/bin:/sbin"
MANPATH="/usr/local/man:/usr/share/man"
test -d /usr/local && PATH=/usr/local/bin:/usr/local/sbin:/usr/local/go/bin:$PATH &&
MANPATH=/usr/local/share/man:$MANPATH
test -d /usr/X11 && PATH=$PATH:/usr/X11/bin &&
MANPATH=$MANPATH:/usr/X11/man:/usr/X11/share/man
test -d /opt && PATH=/opt/local/bin:/opt/local/sbin:$PATH &&
MANPATH=/opt/local/share/man:/opt/local/man:$MANPATH
test -d /Developer/SDKs/Flex2 && PATH=/Developer/SDKs/Flex2/bin:$PATH
export PATH MANPATH
# Editor
if test -x /opt/local/bin/vim; then
EDITOR=/opt/local/bin/vim; export EDITOR
else
EDITOR=/usr/bin/vim; export EDITOR
fi
# Pager
if test -x /opt/local/bin/lv; then
PAGER=/opt/local/bin/lv; export PAGER
LV="-E'$EDITOR +%d'"; export LV
else
PAGER=/usr/bin/less; export PAGER
fi
# Others
BLOCKSIZE=k; export BLOCKSIZE
test -f ~/.bashrc && . ~/.bashrc