dotfiles/zsh/.config/zsh/.zshenv
2022-05-07 16:52:33 +02:00

25 lines
676 B
Bash

# PATH
export PATH="$HOME/.local/bin:$PATH"
(( ${+commands[go]} )) && export PATH="$(go env GOPATH)/bin:$PATH"
# Essentials
[[ $(uname -o) == "GNU/Linux" ]] \
&& [[ $(lsb_release -si) != "Debian" ]] \
&& [[ $(lsb_release -si) != "Ubuntu" ]] \
&& export LANG="en_DK.UTF-8" \
|| export LANG="en_US.UTF-8" && export TERM="xterm-256color"
export PAGER="less"
export EDITOR="nano"
(( ${+commands[vim]} )) && export EDITOR="vim"
(( ${+commands[nvim]} )) && export EDITOR="nvim"
# Less
export LESS="-R"
export LESSHISTFILE="/dev/null"
# Tmux
[[ -n $TMUX ]] && export TERM="xterm-256color"
# Secret variables
[[ -f $ZDOTDIR/.env.zsh ]] && source $ZDOTDIR/.env.zsh