-
Notifications
You must be signed in to change notification settings - Fork 3
/
.profile
60 lines (47 loc) · 1.9 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
# vi: ft=sh
# http://blog.jcoglan.com/2013/02/12/tab-completion-for-your-command-line-apps/
PATH=${HOME:?}/bin:/usr/local/sbin:$PATH
# XDG
export XDG_CONFIG_HOME=${HOME:?}/.config
export XDG_DATA_HOME=${HOME:?}/.local/share
export XDG_STATE_HOME=${HOME:?}/.local/state
export XDG_CACHE_HOME=${HOME:?}/.cache
export XDG_RUNTIME_DIR=$TMPDIR
export XDG_DATA_DIRS=/usr/local/share/:/usr/share/
export XDG_CONFIG_DIRS=/etc/xdg
# env
export EDITOR=vim
export PAGER=less
export INPUTRC=${XDG_CONFIG_HOME:?}/readline/inputrc
export LESS=FRXi
export LESSHISTFILE=${XDG_STATE_HOME:?}/lesshst
export LESSKEY=${XDG_CONFIG_HOME:?}/less/lesskey
export RANDFILE=${XDG_DATA_HOME:?}/openssl/rnd
export XAUTHORITY=${XDG_RUNTIME_DIR:?}/Xauthority
export VIMINIT="let \$MYVIMRC=\"${XDG_CONFIG_HOME:?}/vim/vimrc\" | source \$MYVIMRC"
export OP_CONFIG_DIR=${XDG_STATE_HOME:?}/op
# databass
export MYSQL_HISTFILE=${XDG_STATE_HOME:?}/mysql_history
export PSQLRC=${XDG_CONFIG_HOME:?}/pg/config
export PSQL_HISTORY=${XDG_STATE_HOME:?}/psql_history
export PGPASSFILE=${XDG_CONFIG_HOME:?}/pg/pgpass
export PGSERVICEFILE=${XDG_CONFIG_HOME:?}/pg/pg_service.conf
# virtual
export DOCKER_CONFIG=${XDG_CONFIG_HOME:?}/docker
export MACHINE_STORAGE_PATH=${XDG_DATA_HOME:?}/docker-machine
export KUBECONFIG=${XDG_CONFIG_HOME:?}/kube
export KUBECACHEDIR=${XDG_CACHE_HOME:?}/kube
export VAGRANT_HOME=${XDG_DATA_HOME:?}/vagrant
export VAGRANT_ALIAS_FILE=${XDG_DATA_HOME:?}/vagrant/aliases
export IEVMS_HOME=${XDG_DATA_HOME:?}/ievms
export ANDROID_USER_HOME=${XDG_DATA_HOME:?}/android
export CP_HOME_DIR=${XDG_DATA_HOME:?}/cocoapods
export GRADLE_USER_HOME=${XDG_DATA_HOME:?}/gradle
# overridden by machine-specific .local
export CODEPATH=${HOME:?}/Projects
for config in "${XDG_CONFIG_HOME:?}"/bashrc.d/*.sh{,.local} ~/.bashrc; do
test -r "$config" && . "$config"
done
unset config
# force cd hooks to be evaled when Terminal.app opens new window or tab
__chwd_hook --eval