]> 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/pkg/bin
25 append_path PATH /usr/pkg/sbin
26 append_path PATH /usr/local/bin
27 append_path PATH /usr/local/sbin
28 # Hope these could be removed someday!
29 append_path PATH /usr/local/ymir/perl/bin
30
31 # MANPATH
32 export MANPATH=""
33 append_path MANPATH /usr/share/man
34 append_path MANPATH /usr/pkg/man
35 append_path MANPATH /usr/local/man
36 append_path MANPATH /usr/local/share/man
37
38 # INFOPATH
39 export INFOPATH=""
40 append_path INFOPATH /usr/share/info
41 append_path INFOPATH /usr/pkg/info
42 append_path INFOPATH /usr/local/info
43 append_path INFOPATH /usr/local/share/info
44
45 # PKG_CONFIG_PATH
46 export PKG_CONFIG_PATH=""
47 append_path PKG_CONFIG_PATH /usr/lib/pkgconfig
48 append_path PKG_CONFIG_PATH /usr/pkg/lib/pkgconfig
49 append_path PKG_CONFIG_PATH /usr/local/lib/pkgconfig
50
51 # DYLD_FALLBACK_LIBRARY_PATH (Only for Darwin)
52 export DYLD_FALLBACK_LIBRARY_PATH=""
53 append_path DYLD_FALLBACK_LIBRARY_PATH /usr/pkg/lib
54
55 # Languages
56 export LANGUAGAE="ja"
57 export LANG="ja_JP.UTF-8"
58 export OUTPUT_CHARSET="UTF-8"
59
60 # Default Tools
61 export EDITOR="vi"
62 export PAGER="lv"
63
64 # Application Settings
65 export LV="-Ia -c"
66 export LESS="--quit-if-one-screen"
67 export GTK_IM_MODULE=uim
68
69 # darcs
70 export DARCS_EMAIL="pho@cielonegro.org"
71 export DARCS_DONT_ESCAPE_8BIT=1
72
73 # uim-fep
74 export UIM_FEP=skk