-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
57 lines (47 loc) · 1.61 KB
/
.profile
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
append_path () {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
append_path "$HOME/.local/bin"
append_path "$HOME/node_modules/.bin"
append_path "$HOME/.cargo/bin"
if [[ -x "/usr/sbin/bob" ]]; then
append_path "$HOME/.local/share/neovim/bin"
fi
if [[ "$ANDROID_HOME" != "" ]]; then # https://stackoverflow.com/questions/3601515/how-to-check-if-a-variable-is-set-in-bash
ANDROID_SDK_ROOT='/opt/android-sdk'
append_path "$ANDROID_HOME/emulator"
append_path "$ANDROID_HOME/platform-tools/"
append_path "$ANDROID_HOME/tools/bin/"
append_path "$ANDROID_HOME/tools/"
append_path "$ANDROID_HOME/emulator"
fi
if [ "$XDG_SESSION_TYPE" == "wayland" ] ; then
export MOZ_ENABLE_WAYLAND=1
fi
if [[ -x "/usr/bin/nix" ]] ; then
XDG_DATA_DIRS="$HOME/.nix-profile/share:$XDG_DATA_DIRS"
fi
if [[ -f "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ]]; then
source "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
fi
export PATH
export EDITOR="nvim"
export DIFFPROG="nvim -d"
export AURDEST="$HOME/Downloads/aur"
export AURSEEN="$HOME/Downloads/aur"
export JAR="/usr/share/java/jdtls/plugins/org.eclipse.equinox.launcher_1.6.100.v20201223-0822.jar"
export GRADLE_HOME="$HOME/gradle"
export JAVA_HOME="/usr/lib/jvm/default"
export JDTLS_CONFIG="$HOME/.local/share/java/jdtls/config_linux"
export WORKSPACE="$HOME/Documents/workspace"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_DATA_DIRS
unset -f append_path