-
Notifications
You must be signed in to change notification settings - Fork 2
/
profile
71 lines (56 loc) · 1.53 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# ~/.profile: executed by the command interpreter for login shells
path_prepend() {
if test -d "$1"; then
PATH="$1:$PATH"
fi
}
path_append() {
if test -d "$1"; then
PATH="$PATH:$1"
fi
}
# ccache
path_prepend "/usr/lib/ccache"
# local bin directories
path_prepend "$HOME/bin"
path_prepend "$HOME/bin_local"
path_prepend "$HOME/.cabal/bin"
path_prepend "$HOME/.yarn-config/global/node_modules/.bin"
path_prepend "$HOME/.npm-packages/bin"
path_prepend "$HOME/.local/bin" # used by pip
# android stuff
export ANDROID_HOME="$HOME/opt/android-sdk"
export ANDROID_SDK="$ANDROID_HOME"
path_append "$ANDROID_SDK/tools"
path_append "$ANDROID_SDK/platform-tools"
path_append "$ANDROID_SDK/cmdline-tools/latest/bin"
path_append "$HOME/opt/gradle/bin"
path_append "$HOME/opt/buck/bin"
# rust
path_append "$HOME/.cargo/bin"
# disable ~/.lesshst (potential data leakage)
export LESSHISTFILE=/dev/null
# define the prefered visual terminal
export VTERM=x-terminal-emulator
# vagrant
export VAGRANT_DEFAULT_PROVIDER=libvirt
if [ -f "$HOME/.profile.local" ]; then
. "$HOME/.profile.local"
fi
# npm
export NODE_PATH="$NODE_PATH:$HOME/.npm-packages/lib/node_modules"
# libvirt/virsh
export LIBVIRT_DEFAULT_URI="qemu:///system"
unset -f path_prepend
unset -f path_append
if [ -f "$HOME/.profile.local" ]; then
. "$HOME/.profile.local"
fi
# if running bash
# TODO: Move to ~/.bash_profile
if test -n "$BASH_VERSION"; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi