-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot.zshenv.main
53 lines (46 loc) · 1.71 KB
/
dot.zshenv.main
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
52
53
# -*- mode:sh -*-
# user generic .zshenv file for zsh(1).
# =====================================
# LANG.
# =====
export LANG=ja_JP.UTF-8
# TERM.
# =====
if [[ "${TERM}" == (xterm*) ]] { TERM=xterm-color; }
if [[ "${TERM}" == (kterm*) ]] { TERM=kterm-color; }
if [[ "${TERM}" == (rxvt*) ]] { TERM=rxvt-color; }
#if [[ "${OSTYPE}" == (cygwin*) ]] { TERM=cygwin; }
export TERM
# PATH, MANPATH, INFOPATH, LD_LIBRARY_PATH.
# =========================================
if [ "${PATH/$HOME/}" = "$PATH" ] ; then # if $HOME/bin is not in $PATH ...
# for MacPorts
if [ -d "/opt/local" ]; then
for i in /opt/local/{bin,sbin}; do
if [ -d "$i" ]; then PATH="$i:$PATH"; fi
done
if [ -d "/opt/local/share/man" ]; then
MANPATH="/opt/local/share/man:$MANPATH"
fi
if [ -d "/opt/local/share/info" ]; then
INFOPATH="/opt/local/share/info:$INFOPATH"
fi
if [ -d "/opt/local/lib" ]; then
LD_LIBRARY_PATH="/opt/local/lib:$LD_LIBRARY_PATH"
fi
fi
# for my own tools
if [ -d "$HOME/bin" ]; then PATH="$HOME/bin:$PATH"; fi
if [ -d "$HOME/man" ]; then MANPATH="$HOME/man:$MANPATH"; fi
if [ -d "$HOME/share/man" ]; then MANPATH="$HOME/share/man:$MANPATH"; fi
if [ -d "$HOME/info" ]; then INFOPATH="$HOME/info:$INFOPATH"; fi
# for src install
if [ -d "$HOME/local/bin" ]; then PATH="$HOME/local/bin:$PATH"; fi
if [ -d "$HOME/local/man" ]; then MANPATH="$HOME/local/man:$MANPATH"; fi
if [ -d "$HOME/local/share/man" ]; then MANPATH="$HOME/local/share/man:$MANPATH"; fi
if [ -d "$HOME/local/info" ]; then INFOPATH="$HOME/local/info:$INFOPATH"; fi
# for PEAR
if [ -d "$HOME/local/php/bin" ]; then PATH="$HOME/local/php/bin:$PATH"; fi
fi
export PATH MANPATH INFOPATH LD_LIBRARY_PATH
# __END__