]> gitweb.pimeys.fr Git - config-20-100.git/blob - .zsh/rc/base/20_env
Ajout du zshrc, même s'il manque encore de commentaires etc.
[config-20-100.git] / .zsh / rc / base / 20_env
1 #x compatibility
2 xsource "/etc/default/locale"
3
4 for var in LANG LC_ALL LC_MESSAGES ; do
5 [[ -n ${(P)var} ]] && export $var
6 done
7
8 xsource "/etc/sysconfig/keyboard"
9
10 #Sets timezone
11 TZ=$(xcat /etc/timezone)
12
13 # color setup for ls:
14 check_com -c dircolors && eval $(dircolors -b)
15
16 # Pager
17 export PAGER=less
18
19 # While in doubt.
20 export SHELL='/bin/zsh'
21
22 # Colors in less...
23 export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
24 export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
25 export LESS_TERMCAP_me=$'\E[0m' # end mode
26 export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
27 export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
28 export LESS_TERMCAP_ue=$'\E[0m' # end underline
29 export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
30 export LESS="-SR"
31
32 # does not need export
33 MAILCHECK=30 # mailchecks
34 REPORTTIME=5 # report about cpu-/system-/user-time of command if running longer than 5 seconds
35 watch=(notme root) # watch for everyone but me and root
36
37 # automatically remove duplicates from these arrays
38 typeset -U path cdpath fpath manpath
39 # adding personnal completion files in fpath
40 fpath=(~/.zsh/completion $fpath)
41
42 if [ $TERM = "rxvt-unicode-256color" ]; then
43 export TERM=rxvt-unicode
44 fi
45
46 #+---------------------------------------+
47 #| HISTORY |
48 #+---------------------------------------+
49 h=$(hostname --fqdn)
50
51 #v#
52 HISTFILE=$ZSHDIR/history-$h
53 HISTSIZE=100000
54 SAVEHIST=100000
55 export HISTFILE HISTSIZE SAVEHIST
56
57 ############ MISC ##################
58 # set terminal property (used e.g. by msgid-chooser)
59 export COLORTERM="yes"
60
61 # set default browser
62 if [[ -z "$BROWSER" ]] ; then
63 if [[ -n "$DISPLAY" ]] ; then
64 #v# If X11 is running
65 check_com -c firefox && export BROWSER=firefox
66 else
67 #v# If no X11 is running
68 check_com -c w3m && export BROWSER=w3m
69 fi
70 fi
71
72 #m# v QTDIR \kbd{/usr/share/qt[34]}\quad [for non-root only]
73 [[ -d /usr/share/qt3 ]] && export QTDIR=/usr/share/qt3
74 [[ -d /usr/share/qt4 ]] && export QTDIR=/usr/share/qt4
75
76 # support running 'jikes *.java && jamvm HelloWorld' OOTB:
77 #v# [for non-root only]
78 [[ -f /usr/share/classpath/glibj.zip ]] && export JIKESPATH=/usr/share/classpath/glibj.zip
79 # }}}
80
81 # umask personnal config file
82 # used to set specific umask
83 UMASKFILE=~/.umask