This repository has been archived by the owner on Oct 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.exports
53 lines (41 loc) · 1.61 KB
/
.exports
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
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export ANDROID_SDK=$HOME/Android/Sdk
export ANDROID_SDK_ROOT=$ANDROID_SDK
export ANDROID_HOME=$ANDROID_SDK
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) export JAVA_HOME=/usr/lib/jvm/default;;
Darwin*) export JAVA_HOME="$(/usr/libexec/java_home -v 11)";;
*) export JAVA_HOME=JAVA_HOME
esac
export GOPATH=$(go env GOPATH)
export GOBIN=$GOPATH/bin
export N_PREFIX=$XDG_DATA_HOME/n
# Make `pip3 install --user` install packages to .local on os x`
export PYTHONUSERBASE=$HOME/.local
export PLATFORM=$(uname)
export EDITOR=vim
export SYSTEMD_EDITOR=vim
export VISUAL=vim
if [[ $PLATFORM == "Darwin" ]]; then
export PAGER=/usr/local/bin/less
else
export PAGER=/usr/bin/less
fi
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s" LESS_ADVANCED_PREPROCESSOR=1
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_DEFAULT_OPTS="--layout=reverse --inline-info"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# setup PATH
export PATH=/usr/local/sbin:$PATH
export PATH=$HOME/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$ANDROID_SDK/platform-tools:$PATH
export PATH=$ANDROID_SDK/cmdline-tools/latest/bin:$PATH
export PATH=$HOME/.fzf/bin:$PATH # fzf fuzzy finder
export PATH=$HOME/.cargo/bin:$PATH # rust scripts
export PATH=$GOBIN:$PATH # go binaries
export PATH="$(ruby -e 'puts Gem.user_dir')/bin":$PATH # RubyGems
export PATH=".:$PATH" # gradle completion