25 lines
676 B
Bash
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
|