Move the zsh exported variables to the .zshenv file

This commit is contained in:
Rodolphe Bréard 2021-09-12 09:47:27 +02:00
parent 4927b7f551
commit 0844e03dd4
2 changed files with 14 additions and 12 deletions

14
.zshenv Normal file
View file

@ -0,0 +1,14 @@
export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=5000
export SAVEHIST=100000
export CLICOLOR=1
export EDITOR='vim'
export PAGER='less'
export USER_NICKNAME="Rodolphe Bréard"
export DEBEMAIL="packages+deb@what.tf"
export DEBFULLNAME="$USER_NICKNAME"
# Path
[ -f ~/.setpath.sh ] && . ~/.setpath.sh

12
.zshrc
View file

@ -2,18 +2,6 @@ setopt no_beep inc_append_history hist_ignore_dups hist_ignore_space extended_gl
bindkey -e
bindkey "^[[3~" delete-char
bindkey "^[3;5~" delete-char
export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=5000
export SAVEHIST=100000
export CLICOLOR=1
export EDITOR='vim'
export PAGER='less'
export USER_NICKNAME="Rodolphe Bréard"
export DEBEMAIL="packages+deb@what.tf"
export DEBFULLNAME="$USER_NICKNAME"
# Path
[ -f ~/.setpath.sh ] && . ~/.setpath.sh
# Colors
[ "$CLICOLOR" -ne 0 ] && hash dircolors 2>/dev/null && eval $(dircolors -b)