-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env$
185 lines (150 loc) · 6.37 KB
/
.env$
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
#!/usr/bin/env bash
HOME=~
# ===================================================
# ⚡️ Helper
# ===================================================
function prepend-path {
case ":$PATH:" in
*":$1:"*) :;; # already there
*) PATH="$1:$PATH";; # or PATH="$PATH:$1"
esac
}
function append-path {
case ":$PATH:" in
*":$1:"*) :;; # already there
*) PATH="$PATH:$1";; # or PATH="$PATH:$1"
esac
}
# ===================================================
# ⚡️ Lang
# ===================================================
export LANG='en_US.UTF-8'
# ===================================================
# ⚡️ Dotfiles
# ===================================================
export DOTFILES=~/.dotjitsu
export DOTJITSU_FRAMEWORK="prezto"
export DOTJITSU=~/.dotjitsu
export PRIVATE=~/.private
export KEYTIMEOUT=1
# ===================================================
# ⚡️ FZF
# ===================================================
export FZF_TMUX_HEIGHT='90%'
export FZF_DEFAULT_COMMAND='fd -tf -c always'
#export _FZF_DEFAULT_OPTS_NO_PREVIEW='--height 80% --layout=reverse --border --inline-info --pointer=»'
export _FZF_DEFAULT_OPTS_NO_PREVIEW='--ansi --height 90% --border --layout=reverse --inline-info --pointer=❯'
export _FZF_DEFAULT_OPTS_PREVIEW="--ansi --bind 'ctrl-j:ignore,ctrl-k:ignore' --ansi --preview-window 'right:60%' --preview 'bat --color=always --style=header,grid --line-range :300 {}'"
export FZF_DEFAULT_OPTS="$_FZF_DEFAULT_OPTS_NO_PREVIEW --color=hl:#eb4034,hl+:#ff0000 --exact"
# ctrl+t
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_CTRL_T_OPTS="$_FZF_DEFAULT_OPTS_PREVIEW"
# ctrl+r
export FZF_CTRL_R_OPTS=""
# alt+c
export FZF_ALT_C_COMMAND="fd -td -c always --base-directory ."
export GEM_HOME="$HOME/.gem"
export GOPATH="$HOME/.go"
export GREP_OPTIONS="--color=auto"
# # ===================================================
# # ⚡️ HOMEBREW
# # ===================================================
if [ -z $HOMEBREW_PREFIX ]; then
if [[ -f /opt/homebrew/bin/brew ]]; then
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}";
export HOMEBREW_PREFIX="/opt/homebrew"
else
export HOMEBREW_PREFIX="/usr/local"
fi
fi
export HOMEBREW_AUTO_UPDATE_SECS=86400
export HOMEBREW_CASK_OPTS="--appdir=~/Applications"
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_BREWFILE=~/.dotjitsu/Brewfile
# ===================================================
# ⚡️ XDG
# ===================================================
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:=${HOME}/.config}
export XDG_CACHE_HOME=${XDG_CACHE_HOME:=${HOME}/.cache}
export XDG_DATA_HOME=${XDG_DATA_HOME:=${HOME}/.local/share}
# ===================================================
# ⚡️ FNM
# ===================================================
export FNM_DIR="$XDG_DATA_HOME/fnm"
export PNPM_HOME="$HOME/.local/share/pnpm"
export PATH="$PNPM_HOME:$PATH"
# export ZDOTDIR=${ZDOTDIR:=${XDG_CONFIG_HOME}/zsh}
# export DYLD_INSERT_LIBRARIES="/usr/local/lib/libstderred.dylib${DYLD_INSERT_LIBRARIES:+:$DYLD_INSERT_LIBRARIES}"
# ===================================================
# ⚡️ PATHS
# ===================================================
# Local node_modules takes presedence
prepend-path "./node_modules/.bin"
#addPath "$HOME/.config/yarn/global/node_modules/.bin"
#export NODE_PATH=$HOME/.config/yarn/global/node_modules
# export NODE_PATH=$XDG_DATA_HOME/yarn/global/node_modules
export NODE_PATH=$XDG_DATA_HOME/pnpm/global/5/node_modules
prepend-path "$HOMEBREW_PREFIX/opt/binutils/bin"
prepend-path "$HOMEBREW_PREFIX/opt/binutils/bin"
prepend-path "$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin"
prepend-path "$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin"
prepend-path "$HOMEBREW_PREFIX/opt/gnu-which/libexec/gnubin"
prepend-path "$HOMEBREW_PREFIX/opt/gnu-getopt/bin"
prepend-path "$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnubin"
prepend-path "$HOMEBREW_PREFIX/opt/gnu-indent/libexec/gnubin"
prepend-path "$HOMEBREW_PREFIX/opt/gnu-time/libexec/gnubin"
prepend-path "$HOMEBREW_PREFIX/opt/util-linux/bin"
prepend-path "$HOMEBREW_PREFIX/opt/util-linux/sbin"
prepend-path "$HOME/.local/bin"
prepend-path "$DOTJITSU/bin"
prepend-path "$PRIVATE/bin"
prepend-path "$HOME/bin"
prepend-path "$HOMEBREW_PREFIX/opt/make/libexec/gnubin"
append-path "$HOME/.deno/bin"
append-path "$HOME/.go/bin"
append-path "$HOME/.cargo/bin"
append-path "$HOME/.repos/git-friendly"
append-path "$HOMEBREW_PREFIX/opt/sqlite/bin"
append-path "$HOMEBREW_PREFIX/opt/python/libexec/bin"
append-path "$HOMEBREW_PREFIX/opt/mozjpeg/bin"
append-path "$HOMEBREW_PREFIX/opt/openjdk@8/bin"
append-path "$HOME/.cargo/bin"
# Use core-utils directly
export MANPATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnuman:$MANPATH"
export MANWIDTH=120
# If you'd like to use existing homebrew v1 completions
# export BASH_COMPLETION_COMPAT_DIR="$HOMEBREW_PREFIX/etc/bash_completion.d"
# ===================================================
# ⚡️ DOCKER
# ===================================================
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
# ===================================================
# ⚡️ EDITORS
# ===================================================
export BAT_CONFIG_PATH="$HOME/.dotjitsu/bat.conf"
export BROWSER=chromium
export EDITOR='code'
export GIT_EDITOR="code --wait --new-window"
export JAVA_HOME=$HOMEBREW_PREFIX/opt/openjdk@8
export N_PREFIX="$HOME/.config/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin" # Added by n-install (see http://git.io/n-install-repo).
#export PAGER='fzf --ansi'
#export GIT_PAGER=''
export DELTA_PAGER='less -RF'
export PAGER='bat'
export VISUAL='code'
export HISTSIZE=100000
export SAVEHIST=100000
export HISTFILE=~/.cache/zsh_history # ensure history file visibility
export HH_CONFIG=hicolor # get more colors
export VAGRANT_DEFAULT_PROVIDER=vmware_fusion
export NODE_REPL_HISTORY=~/.cache/node_repl_history # Enable persistent REPL history for `node`.
export NODE_REPL_HISTORY_SIZE='32768' # Allow 32³ entries; the default is 1000.
export NODE_REPL_MODE='sloppy' # Use sloppy mode by default, matching web browsers.
# Starship
export STARSHIP_CONFIG=$DOTFILES/starship.toml
# Bkt
export BKT_TMPDIR=~/.cache/bkt
# Remove duplicates in PATH & preserve order (should not be needed, but hey !?)
# export PATH=$(printf "%s" "$PATH" | awk -v RS=':' '!a[$1]++ { if (NR > 1) printf RS; printf $1 }')