zshenv
author Mikael Berthe <mikael@lilotux.net>
Wed, 06 Mar 2024 21:08:50 +0100
changeset 59 ab7da88f8fd8
parent 57 49c07618b1bc
permissions -rw-r--r--
Enable Vim mode for foot terminal

#
# 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

# Local configuration (zenv) files
localrcfiles=($ZDOTLOCALDIR/??-*.zenv) 2> /dev/null
for rc in $localrcfiles; do
    [[ -r ${rc} ]] && source "$rc"
done
unset rc localrcfiles