-
Notifications
You must be signed in to change notification settings - Fork 3
/
.common_env
48 lines (35 loc) · 1.5 KB
/
.common_env
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
# Contains commands to set the command search path, plus other important environment variables. Should not contain commands that produce output or assume the shell is attached to a tty
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export HOMEBREW_NO_ANALYTICS=1
if [ -f ~/.local_env ]; then
. ~/.local_env
fi
# ln -s /usr/lib/jvm/java-17-openjdk-17.0.7.0.7-5.fc38.x86_64 ~/jdk
export JAVA_HOME=$HOME/jdk
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/platform-tools
if [ -d ~/.pub-cache/bin ]; then
export PATH="$PATH":"$HOME/.pub-cache/bin"
fi
# Fixes sdkmanager error with java versions higher than java 8
# export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'
# if test -f ~/.gnupg/.gpg-agent-info -a -n "$(pgrep gpg-agent)"; then
# source ~/.gnupg/.gpg-agent-info
# export GPG_AGENT_INFO
# GPG_TTY=$(tty)
# export GPG_TTY
# else
# eval $(gpg-agent --daemon --write-env-file ~/.gnupg/.gpg-agent-info)
# fi
export FZF_DEFAULT_COMMAND='rg -l --hidden ""'
export FZF_CTRL_T_COMMAND='rg -l --hidden ""'
export FZF_DEFAULT_OPTS="--no-mouse --exact --bind ctrl-a:select-all --preview '~/.vim/plugged/fzf.vim/bin/preview.sh {}'"
# export FZF_DEFAULT_OPTS="${FZF_DEFAULT_OPTS} --no-mouse --exact --bind ctrl-a:select-all"
export PATH=$PATH:$HOME/.cargo/bin
export PATH=$PATH:$HOME/go/bin
export PATH="$HOME/.local/bin:$HOME/bin:$PATH"
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
# export XDG_CURRENT_DESKTOP=Sway
export COMMON_ENV_LOADED=1