From 7370764be4fb02ff0969bbc8f6b35f0ea8f6b4a2 Mon Sep 17 00:00:00 2001 From: Marco Kundt Date: Sat, 3 Apr 2021 22:55:46 +0200 Subject: [PATCH] reintroduce zshenv --- zsh/.zshenv | 14 ++++++++++++++ zsh/.zshrc | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 zsh/.zshenv diff --git a/zsh/.zshenv b/zsh/.zshenv new file mode 100644 index 0000000..8c7f370 --- /dev/null +++ b/zsh/.zshenv @@ -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)" diff --git a/zsh/.zshrc b/zsh/.zshrc index 4937691..169423a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -9,9 +9,6 @@ setopt noflowcontrol setopt prompt_subst unsetopt nomatch -HISTFILE=${HOME}/.zsh_history -HISTSIZE=500000 -SAVEHIST=$HISTSIZE setopt share_history setopt append_history setopt extended_history @@ -106,14 +103,3 @@ toolbox() { command toolbox $@ 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