-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshenv
69 lines (52 loc) · 1.58 KB
/
.zshenv
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
export EDITOR="nvim"
export VISUAL="nvim"
export MANPAGER="nvim +Man!"
export TERM="xterm-256color"
export DOCKER_CONFIG="$HOME/.docker"
export FZF_DEFAULT_OPT="--bind up:preview-up,down:preview-down"
export HISTORY_IGNORE="(ls|cd|pwd|exit|sudo reboot|history|cd -|cd ..)"
export JDTLS_JVM_ARGS="-javaagent:$HOME/.local/share/java/lombok-1.18.32.jar" # download lombok from https://projectlombok.org/download
export nvm_default_version="v16.3.0"
export STARSHIP_CONFIG="$HOME/.config/starship/starship.toml"
### XDG environment variables
if [ -z "$XDG_CONFIG_HOME" ] ; then
export XDG_CONFIG_HOME="$HOME/.config"
fi
if [ -z "$XDG_DATA_HOME" ] ; then
export XDG_DATA_HOME="$HOME/.local/share"
fi
if [ -z "$XDG_CACHE_HOME" ] ; then
export XDG_CACHE_HOME="$HOME/.cache"
fi
### custom env vars
if [ -d "$HOME/Android/Sdk" ] ; then
export ANDROID_SDK="$HOME/Android/Sdk"
fi
if [ -z "$FVM_CACHE_PATH" ] ; then
export FVM_CACHE_PATH="$HOME/.fvm-installed"
fi
if [ -z "$ZSH_CONFIG_DIR" ] ; then
export ZSH_CONFIG_DIR="$XDG_CONFIG_HOME/zsh"
fi
if [ -z "$ZSH_PLUGIN_DIR" ] ; then
export ZSH_PLUGIN_DIR="$ZSH_CONFIG_DIR/plugins"
fi
### PATH
if [ -d "$HOME/.bin" ] ;
then PATH="$HOME/.bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ;
then PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "/var/lib/flatpak/exports/bin/" ] ;
then PATH="/var/lib/flatpak/exports/bin/:$PATH"
fi
if [ -d "$HOME/go/bin" ] ;
then PATH="$HOME/go/bin:$PATH"
fi
if [ -d "$FVM_CACHE_PATH/default/bin" ] ;
then PATH="$FVM_CACHE_PATH/default/bin:$PATH"
fi
if [ -d "$HOME/.cargo/bin" ] ;
then PATH="$HOME/.cargo/env:$PATH"
fi