zshenv
changeset 0 7215ca490221
child 25 709f9a3b120e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zshenv	Sat Jul 14 19:20:57 2012 +0200
@@ -0,0 +1,44 @@
+#
+# This file is sourced on all invocations of the shell.
+# If the -f flag is present or if the NO_RCS option is
+# set within this file, all other initialization files
+# are skipped.
+#
+# This file should contain commands to set the command
+# search path, plus other important environment variables.
+# This file should not contain commands that produce
+# output or assume the shell is attached to a tty.
+#
+# Global Order: zshenv, zprofile, zshrc, zlogin
+
+export ZDOTLOCALDIR=$ZDOTDIR/zsh_local
+
+# PATH
+PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
+# Correction du PATH pour root
+# Essentiel si l'utilisateur est connecte en non-root puis fait un 'su -'
+# par defaut les repertoires /sbin, /usr/sbin, /usr/local/sbin manquent.
+if [[ $UID -eq 0 ]]; then
+  PATH="/usr/local/sbin:/usr/sbin:/sbin:${PATH}"
+fi
+export PATH
+
+# Options de 'less'
+export LESS="-Mi"
+# Ouvre les fichiers compressés
+eval $(lesspipe)
+
+# Pager
+export PAGER=less
+export MANPAGER=less
+
+watch=(notme)
+WATCHFMT='%n %a %l from %m at %T on %D.'
+
+REPORTTIME=60
+
+# Bip visuel
+export ZBEEP='\e[?5h\e[?5l'
+
+export EDITOR='vim'
+export VISUAL=$EDITOR