zshenv
changeset 0 7215ca490221
child 25 709f9a3b120e
equal deleted inserted replaced
-1:000000000000 0:7215ca490221
       
     1 #
       
     2 # This file is sourced on all invocations of the shell.
       
     3 # If the -f flag is present or if the NO_RCS option is
       
     4 # set within this file, all other initialization files
       
     5 # are skipped.
       
     6 #
       
     7 # This file should contain commands to set the command
       
     8 # search path, plus other important environment variables.
       
     9 # This file should not contain commands that produce
       
    10 # output or assume the shell is attached to a tty.
       
    11 #
       
    12 # Global Order: zshenv, zprofile, zshrc, zlogin
       
    13 
       
    14 export ZDOTLOCALDIR=$ZDOTDIR/zsh_local
       
    15 
       
    16 # PATH
       
    17 PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
       
    18 # Correction du PATH pour root
       
    19 # Essentiel si l'utilisateur est connecte en non-root puis fait un 'su -'
       
    20 # par defaut les repertoires /sbin, /usr/sbin, /usr/local/sbin manquent.
       
    21 if [[ $UID -eq 0 ]]; then
       
    22   PATH="/usr/local/sbin:/usr/sbin:/sbin:${PATH}"
       
    23 fi
       
    24 export PATH
       
    25 
       
    26 # Options de 'less'
       
    27 export LESS="-Mi"
       
    28 # Ouvre les fichiers compressés
       
    29 eval $(lesspipe)
       
    30 
       
    31 # Pager
       
    32 export PAGER=less
       
    33 export MANPAGER=less
       
    34 
       
    35 watch=(notme)
       
    36 WATCHFMT='%n %a %l from %m at %T on %D.'
       
    37 
       
    38 REPORTTIME=60
       
    39 
       
    40 # Bip visuel
       
    41 export ZBEEP='\e[?5h\e[?5l'
       
    42 
       
    43 export EDITOR='vim'
       
    44 export VISUAL=$EDITOR