-
Notifications
You must be signed in to change notification settings - Fork 2
/
profile
132 lines (106 loc) · 3.25 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# # if running bash
# if [ -n "${BASH_VERSION}" ]; then
# # include .bashrc if it exists
# if [ -f "${HOME}/.bashrc" ]; then
# . "${HOME}/.bashrc"
# fi
# fi
if grep -E -q MACH-WX9-PCB /sys/class/dmi/id/board_name; then
echo "detected Matebook Pro X"
# sudo xrandr --newmode "1920x1280_60.00" 206.25 1920 2056 2256 2592 1280 1283 1293 1327 -hsync +vsync
# sudo xrandr --addmode eDP-1 "1920x1280_60.00"
fi
export EDITOR="$(which nvim)"
export MY_OS="$(uname -s)"
## I wrap all my tweaks in functions so zprof can profile them (incase something is slow)
## All of my personal tweakage then is under a function starting with my_
# #load gpg/ssh env
# my_load_gnome_keyring(){
# export $(gnome-keyring-daemon --start)
# }
# my_load_path_krew(){
# export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
# }
export PATH="$HOME/.bin:$PATH"
# export PATH="${HOME}/.bin/vendor/bin/:${PATH}"
export PATH="$HOME/.bin/vendor/bin/:$PATH"
export PATH="$HOME/.software/bin:$PATH"
# if [ -d "${HOME}/.asdf/shims" ] ; then
# export PATH="${HOME}/.asdf/shims:${PATH}"
# fi
# my_load_gemstuff(){
# #TODO: dirty, fix me up.. evaluate+learn rbenv or something else please
# local gemstuff="${HOME}"/.gem/ruby/2.5.0/bin
# if [ -d "${gemstuff}" ]; then
# PATH="${gemstuff}:${PATH}"
# fi
# }
# my_load_path_rbenv(){
# #load rbenv if exists
# if [ -d "${HOME}/.rbenv/bin" ]; then
# PATH="${HOME}/.rbenv/bin:${PATH}"
# fi
# # eval "$(rbenv init -)"
# }
# my_load_golang(){
# export GOPATH="${HOME}/go"
# if [ -d "${GOPATH}" ]; then
# export PATH="${GOPATH}/bin:${PATH}"
# fi
# export "PATH=/usr/local/go/bin:${PATH}"
# export GO111MODULE=on
# export GOPRIVATE="github.com/doddle/*"
# export TMPDIR=~/.gotmp/
# if [ ! -d ${TMPDIR} ]; then
# mkdir -p ${TMPDIR}
# fi
# }
# my_load_pip(){
# ##Python virtualenv / pip path
# export PIP_PATH="${HOME}/.local/bin"
# if [ -d "${PIP_PATH}" ]; then
# export PATH="${PIP_PATH}:${PATH}"
# fi
# }
# my_load_nvm(){
# if [ -e $HOME/.nvm ]; then
# export NVM_DIR="$HOME/.nvm"
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# fi
# }
# my_load_fnm(){
# if [ -e $HOME/.fnm ]; then
# export PATH=$HOME/.fnm:$PATH
# eval "`fnm env`"
# fi
# }
# my_load_golang
# # my_load_pip
# # my_load_gemstuff
# my_load_path_home_bin
# my_load_path_krew
# # my_load_fnm
# # my_load_nvm
# my_gnome_settings(){
# #disble animations
# gsettings set org.gnome.desktop.interface enable-animations false
# }
# if egrep -q "gnome" <<<"${DESKTOP_SESSION}" ; then
# my_gnome_settings
# fi
# if egrep -q "i3|xinitrc|sway" <<<"${DESKTOP_SESSION}" ; then
# my_load_gnome_keyring
# fi
export CHEATCOLORS=true
export CHEATPATH="/keybase/private/starkers/home/cheats"
#vf() { fzf | xargs -r -I % $EDITOR % ;}
export ANSIBLE_NOCOWS=1
export FZF_DEFAULT_COMMAND='ag -l --nogroup --nocolor --hidden -g ""'
export FLUX_FORWARD_NAMESPACE=flux
# https://stackoverflow.com/a/46202707
export LIBVIRT_DEFAULT_URI="qemu:///system"
export TF_PLUGIN_CACHE_DIR="$HOME/.tf_cache"
export TERRAGRUNT_DOWNLOAD="$HOME/.terragrunt_download"
export AWS_SDK_LOAD_CONFIG=1
export XDG_DATA_HOME=$HOME/.local/share/
export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels