reintroduce zshenv

This commit is contained in:
2021-04-03 22:55:46 +02:00
parent 304cc6556e
commit 7370764be4
2 changed files with 14 additions and 14 deletions

14
zsh/.zshenv Normal file
View File

@@ -0,0 +1,14 @@
HISTFILE=${HOME}/.zsh_history
HISTSIZE=500000
SAVEHIST=$HISTSIZE
export GOPATH="$HOME/.go"
export PATH="$HOME/.cargo/bin:$HOME/.gem/bin:$GOPATH/bin:$HOME/.local/bin:$PATH"
if [[ -x /usr/bin/nvim ]]; then
export EDITOR=nvim
elif [[ -x /usr/bin/vim ]]; then
export EDITOR=vim
fi
[[ -x /usr/bin/dircolors ]] && eval "$(dircolors)"

View File

@@ -9,9 +9,6 @@ setopt noflowcontrol
setopt prompt_subst setopt prompt_subst
unsetopt nomatch unsetopt nomatch
HISTFILE=${HOME}/.zsh_history
HISTSIZE=500000
SAVEHIST=$HISTSIZE
setopt share_history setopt share_history
setopt append_history setopt append_history
setopt extended_history setopt extended_history
@@ -106,14 +103,3 @@ toolbox() {
command toolbox $@ command toolbox $@
fi fi
} }
[[ -x /usr/bin/dircolors ]] && eval "$(dircolors)"
export GOPATH="$HOME/.go"
export PATH="$HOME/.radicle/bin:$HOME/.cargo/bin:$HOME/.gem/bin:$GOPATH/bin:$HOME/.local/bin:$PATH"
if [[ -x /usr/bin/nvim ]]; then
export EDITOR=nvim
elif [[ -x /usr/bin/vim ]]; then
export EDITOR=vim
fi