about summary refs log tree commit diff
path: root/.config/zsh/.zshenv
blob: 80ac55552bd3d2583577eda216ce8fb1500bf8fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export EDITOR='vim'
export PAGER='less'
export LESS='--RAW-CONTROL-CHARS'
export GPG_TTY=$TTY

export PATH=$HOME/.local/bin:$PATH

if [[ $INTELLIJ -eq 1 ]]; then
	export PATH=/usr/local/bin:/usr/bin:$PATH
fi

if [[ -n $XDG_RUNTIME_DIR ]]; then
	export XDG_CONFIG_HOME="$HOME/.config"
	export XDG_CACHE_HOME="$HOME/.cache"
	export XDG_DATA_HOME="$HOME/.local/share"
	export XDG_STATE_HOME="$HOME/.local/state"
fi

[[ -f "$HOME/.cargo/env" ]] &&  . "$HOME/.cargo/env"

if command -v npm &> /dev/null; then
	export npm_config_prefix="$HOME/.local"
fi

if command -v bat &> /dev/null; then
	export MANPAGER="sh -c 'col -bx | bat --plain --language man'"
	export MANROFFOPT="-c"
fi