zshenv
author Mikael Berthe <mikael@lilotux.net>
Sun, 02 May 2021 12:58:39 +0200
changeset 48 604330c024f4
parent 45 c8b92fa96f48
child 57 49c07618b1bc
permissions -rw-r--r--
Fix key bindings with screen TERM

#
# 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 %(m:from %m:) at %T on %D.'

REPORTTIME=60

# Bip visuel
export ZBEEP='\e[?5h\e[?5l'

export EDITOR='vim'
export VISUAL=$EDITOR