]> gitweb @ CieloNegro.org - sugar.git/blob - dot-files/_zshenv
Auto commit by The Sugar System.
[sugar.git] / dot-files / _zshenv
1 # -*- sh -*-
2
3 function append_path {
4     local _varname="$1"
5     local _path="$2"
6
7     if [ -d "$_path" ]; then
8         local _var=$(eval echo $(printf '$%s' "$_varname"))
9
10          if [ "$_var" = "" ]; then
11             eval $(printf 'export %s="%s"' "$_varname" "$_path")
12         else
13             eval $(printf 'export %s="%s:$%s"' "$_varname" "$_path" "$_varname")
14         fi
15     fi
16 }
17
18 # PATH
19 export PATH=""
20 append_path PATH /bin
21 append_path PATH /sbin
22 append_path PATH /usr/bin
23 append_path PATH /usr/sbin
24 append_path PATH /usr/local/bin
25 append_path PATH /usr/local/sbin
26 append_path PATH /usr/pkg/bin
27 append_path PATH /usr/pkg/sbin
28 append_path PATH /usr/pkg/lib/perl5/site_perl/bin
29 append_path PATH $HOME/bin
30 # Hope these could be removed someday!
31 append_path PATH /usr/local/ymir/perl/bin
32
33 # MANPATH
34 export MANPATH=""
35 append_path MANPATH /usr/share/man
36 append_path MANPATH /usr/local/man
37 append_path MANPATH /usr/local/share/man
38 append_path MANPATH /usr/pkg/man
39
40 # INFOPATH
41 export INFOPATH=""
42 append_path INFOPATH /usr/share/info
43 append_path INFOPATH /usr/local/info
44 append_path INFOPATH /usr/local/share/info
45 append_path INFOPATH /usr/pkg/info
46
47 # PKG_CONFIG_PATH
48 export PKG_CONFIG_PATH=""
49 append_path PKG_CONFIG_PATH /usr/lib/pkgconfig
50 append_path PKG_CONFIG_PATH /usr/local/lib/pkgconfig
51 append_path PKG_CONFIG_PATH /usr/pkg/lib/pkgconfig
52
53 # TMPDIR (Only for Darwin)
54 if [ `uname` = "Darwin" ]; then
55     if [ "$TMPDIR" = "" ]; then
56         export TMPDIR=`getconf DARWIN_USER_TEMP_DIR`
57     fi
58 fi
59
60 # DYLD_FALLBACK_LIBRARY_PATH (Only for Darwin)
61 export DYLD_FALLBACK_LIBRARY_PATH=""
62 #append_path DYLD_FALLBACK_LIBRARY_PATH /usr/lib
63 #append_path DYLD_FALLBACK_LIBRARY_PATH /usr/pkg/lib
64
65 # Languages
66 export LANGUAGAE="ja"
67 export LANG="ja_JP.UTF-8"
68 export OUTPUT_CHARSET="UTF-8"
69
70 # Default Tools
71 export EDITOR="vim"
72 export PAGER="less"
73
74 # Application Settings
75 export LV="-Ia -c"
76 export LESS="--quit-if-one-screen -R"
77 export GTK_IM_MODULE=uim
78 export PERL_BADLANG=0
79
80 # darcs
81 export DARCS_EMAIL="pho@cielonegro.org"
82 export DARCS_DONT_ESCAPE_8BIT=1
83
84 # CVS
85 export CVS_RSH=ssh
86
87 # uim-fep
88 export UIM_FEP=skk
89
90 # sox
91 export AUDIODRIVER=ao
92
93 # icc
94 if [ -e /opt/intel/cce/latest/bin/iccvars.sh ]; then
95     . /opt/intel/cce/latest/bin/iccvars.sh
96     . /opt/intel/ipp/latest/em64t/tools/env/ippvarsem64t.sh
97 fi