-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_profile.tmpl
142 lines (121 loc) · 3.87 KB
/
dot_profile.tmpl
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
132
133
134
135
136
137
138
139
140
141
142
#
# ~/.profile
#
unset LC_ALL
unset NPM_CONFIG_PREFIX
unset PREFIX
export LANG=en_US.UTF-8
export LC_COLLATE=C
export BROWSER=firefox-developer-edition
export EDITOR=vim
export PAGER=less
export DOTFILES=~/.dotfiles
# XDG Base Directory Specification
export XDG_CONFIG_HOME=~/.config
export XDG_CACHE_HOME=~/.cache
export XDG_DATA_HOME=~/.local/share
export BAT_THEME=dracula
export CARGO_HOME=$XDG_DATA_HOME/cargo
export DOCKER_CONFIG=$XDG_CONFIG_HOME/docker
export GNUPGHOME=$XDG_CONFIG_HOME/gnupg
export GOPATH=$XDG_DATA_HOME/go
export HISTFILE=$XDG_DATA_HOME/bash/history
export INPUTRC=$XDG_CONFIG_HOME/readline/inputrc
export LESSCHARSET=utf-8
export LESSHISTFILE=-
export LESSKEY=$XDG_CONFIG_HOME/less/lesskey
export MACHINE_STORAGE_PATH=$XDG_DATA_HOME/docker-machine
export MANIFOLD_DIR=~/.local/bin
export NODE_OPTIONS=--experimental-repl-await
export NODE_REPL_HISTORY=
export NODE_REPL_MODE=strict
export NPM_CONFIG_GLOBALCONFIG=$XDG_CONFIG_HOME/npm/npmrc
export NPM_CONFIG_USERCONFIG=$XDG_DATA_HOME/npm/npmrc
export NVM_DIR=$XDG_CONFIG_HOME/nvm
export PIPX_HOME=$XDG_DATA_HOME/pipx
export PYENV_ROOT=$XDG_DATA_HOME/pyenv
export PYLINTHOME=$XDG_CACHE_HOME/pylint
export PYLINTRC=$XDG_CONFIG_HOME/pylint/pylintrc
export PYTHONUSERBASE=~/.local
export RIPGREP_CONFIG_PATH=$XDG_CONFIG_HOME/ripgrep/config
export RUSTUP_HOME=$XDG_DATA_HOME/rustup
export SSB_HOME=$XDG_DATA_HOME/zoom
export STACK_ROOT=$XDG_DATA_HOME/stack
export TF_CLI_CONFIG_FILE=$XDG_DATA_HOME/terraform/config.tf
export TMUX_PLUGIN_MANAGER_PATH=$XDG_DATA_HOME/tmux/plugins
export UNCRUSTIFY_CONFIG=$XDG_CONFIG_HOME/uncrustify/uncrustify.cfg
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export XINITRC=$XDG_CONFIG_HOME/X11/xinitrc
export npm_config_cache=$XDG_CACHE_HOME/npm
export npm_config_devdir=$XDG_CACHE_HOME/node-gyp
# fzf
if command -v fzf > /dev/null; then
export FZF_DEFAULT_OPTS='
--height 40%
--reverse
--bind=ctrl-a:toggle-all
--bind=ctrl-alt-j:preview-down
--bind=ctrl-alt-k:preview-up
--bind=ctrl-d:preview-page-down
--bind=ctrl-u:preview-page-up
--bind=alt-bs:clear-query
--color fg:#F8F8F2
--color fg+:#F8F8F2
--color bg:-1
--color bg+:-1
--color hl:#50FA7B
--color hl+:#FFB86C
--color info:#BD93F9
--color prompt:#50FA7B
--color pointer:#FF79C6
--color marker:#FF5555
--color spinner:#8BE9FD
--color header:#8BE9FD
'
[ -n "$TMUX" ] && export FZF_TMUX=1
fi
if [ -r "$XDG_CONFIG_HOME/Bitwarden CLI/session.sh" ]; then
# shellcheck disable=SC1091
. "$XDG_CONFIG_HOME/Bitwarden CLI/session.sh"
fi
# shellcheck disable=SC1091
[ -r "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
# shellcheck disable=SC1091
[ -r "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
if command -v nvim > /dev/null; then
export EDITOR=nvim
export MANPAGER='nvim +Man!'
fi
if command -v rustc > /dev/null; then
RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
export RUST_SRC_PATH
fi
if command -v pyenv > /dev/null; then
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
{{- if eq .chezmoi.os "darwin" }}
unset MANPATH
# FIXME: This is broken now after brew updated the locations of gnu manpages.
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:/usr/local/opt/gnu-getopt/share/man:$(manpath)"
export MANPATH
export BROWSER=open
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export LESS=FRX
export MANPAGER='less'
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
export XDG_RUNTIME_DIR="$TMPDIR"
{{- else }}
# Fix for deprecated gvfs-trash call
export ELECTRON_TRASH=gio
{{- end }}
{{- if eq .chezmoi.hostname "rippling-macbook" }}
export DEVELOPER_NAME=dsifford
export PANTS_LINT=true
export REMOTE_IP=dsifford-private.ripplingtest.com
export REMOTE_PRIVATE_KEY_FILE="/Users/dsifford/.ssh/id_ed25519"
export SKIP_CHECK_VPN=true
{{- end }}
# vim: set ft=sh: