-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.environment.env
246 lines (195 loc) · 10.6 KB
/
.environment.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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
#!/bin/bash
# Tip: Search binaries with 'whereis'
# And check with 'printenv'
# Don't use all variables; some variables will collosally break your terminal
# f. ex. TERM
#Don't use or do this
#export TERM=vt100
# BASH
#export BASH_ENV=~/.bashrc
# TMPDIR
export TMPDIR=/tmp
# DISTRO stuff (Only used by dotfiles)
#export DIST_BASE="Arch"
#export DIST="Manjaro"
#export ARCH="amd64"
#export PM="pacman"
#export WRAPPER="pamac"
# LS_COLORS
#https://unix.stackexchange.com/questions/498482/bash-tab-completion-colors-differ-from-ls-colors
#export LS_COLORS='no=00:fi=00:di=00;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:*.xml=00;31:'
# CLI_COLORS
#export CLICOLOR_FORCE='true'
# LC_ALL
#export LC_ALL="en_US.UTF-8"
# TRASH
#export TRASHBIN_LIMIT=1000
# RMPROMPT
type eza &> /dev/null && export RMPROMPT_LS_CMD="eza --long --tree --color=always --header --icons=always"
# SUDO
#export SUDO_ASKPASS=/usr/lib/ssh/x11-ssh-askpass
# MAN
#export MANOPT='-a'
export MANPAGER='nvim +Man!'
# PAGER
#export PAGER=/usr/bin/moar
# LESS
# Instead of less=more, try LESS='less --redraw-on-quit' or smth
#export LESS=" --quit-on-intr --redraw-on-quit --LINE-NUMBERS --line-num-width=2 --window=10 --use-color --color=Pkg$ --IGNORE-CASE --LONG-PROMPT --chop-long-lines --raw-control-chars --underline-special --mouse --QUIET --status-line --no-vbell --follow-name --exit-follow-on-close --quit-if-one-screen --squeeze-blank-lines"
#export LESSEDIT=$EDITOR
# MOAR
#export MOAR='--statusbar=bold --colors=auto --render-unprintable=highlight --wrap --quit-if-one-screen'
# BAT
[[ "$PAGER" =~ 'less' ]] && export BAT_PAGER="less $LESS --line-numbers"
[[ "$PAGER" =~ 'moar' ]] && export BAT_PAGER="moar $MOAR --no-linenumbers"
#export BAT_PAGER="/usr/bin/moar $MOAR --no-linenumbers"
# DIFFPROG
#export DIFFPROG="nvim -d"
# DELTA
[[ "$PAGER" =~ 'less' ]] && export DELTA_PAGER='less '"$LESS"' --line-numbers'
[[ "$PAGER" =~ 'moar' ]] && export DELTA_PAGER='moar '"$MOAR"' --no-linenumbers'
[[ ! "$BAT_PAGER" == '' ]] && export DELTA_PAGER="$BAT_PAGER"
#export DELTA_PAGER=$PAGER
# EDITORS
export EDITOR=/usr/bin/nvim
export VISUAL=/usr/bin/nvim/usr/bin/code
#export SUDO_EDITOR=$EDITOR
#export SUDO_VISUAL=$EDITOR
# READLINE
export INPUTRC=~/.inputrc
# X11 or Wayland
#export X11_WAY="$(loginctl show-session $(loginctl | grep $(whoami) | awk 'NR=1{print $1}') -p Type | awk -F= 'NR==1{print $2}')"
# DISPLAY
#export DISPLAY=":0.0"
# VIM
export MYVIMRC=~/.config/nvim/init.vim
export MYGVIMRC=~/.config/nvim/init.vim~/.config/nvim/init.vim
# VIMPAGER
#export VIMPAGER_RC=~/.vimrc
# GPG
# First one is custom
type gpg2 &> /dev/null && export GPG='gpg2' || export GPG='gpg'
#export GNUPGHOME=~/.thunderbird/e0ecivas.default-release/
# BREW
type brew &> /dev/null && export HOMEBREW_CASK_OPTS="--no-quarantine"
# SNAP
#export PATH=/bin/snap:/var/lib/snapd/snap/bin:$PATH
# FLATPAK
export FLATPAK=$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share
export FLATPAK_ENABLE_SDK_EXT=**
export PATH=$PATH:$HOME/.local/bin/flatpak
# XDG
# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
# $XDG_CACHE_HOME defines the base directory relative to which user-specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a default equal to $HOME/.cache should be used.
#export XDG_CACHE_HOME=$HOME/.cache
# $XDG_CONFIG_HOME defines the base directory relative to which user-specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.
#export XDG_CONFIG_HOME=$HOME/.config
# $XDG_CONFIG_DIRS defines the preference-ordered set of base directories to search for configuration files in addition to the $XDG_CONFIG_HOME base directory. The directories in $XDG_CONFIG_DIRS should be seperated with a colon ':'.
#If $XDG_CONFIG_DIRS is either not set or empty, a value equal to /etc/xdg should be used.
#export XDG_CONFIG_DIRS=/etc/xdg
# $XDG_DATA_HOME defines the base directory relative to which user-specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.
#export XDG_DATA_HOME=$HOME/.local/share
# $XDG_DATA_DIRS defines the preference-ordered set of base directories to search for data files in addition to the $XDG_DATA_HOME base directory. The directories in $XDG_DATA_DIRS should be seperated with a colon ':'.
# If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used.
#export XDG_DATA_DIRS=/usr/local/share/:/usr/share:$FLATPAK
# $XDG_STATE_HOME defines the base directory relative to which user-specific state files should be stored. If $XDG_STATE_HOME is either not set or empty, a default equal to $HOME/.local/state should be used.
#export XDG_STATE_HOME=$HOME/.local/state
# $XDG_RUNTIME_DIR defines the base directory relative to which user-specific non-essential runtime files and other file objects (such as sockets, named pipes, ...) should be stored. The directory MUST be owned by the user, and he MUST be the only one having read and write access to it. Its Unix access mode MUST be 0700.
#export XDG_RUNTIME_DIR=/run/user/1000
# SYSTEMD
# https://systemd.io/ENVIRONMENT/
# Pager stuff
#export SYSTEMD_PAGER="$PAGER"
#export SYSTEMD_PAGERSECURE=0
#export SYSTEMD_COLORS=256
#export SYSTEMD_LESS="FRXMK $LESS --line-num-width=5"
# Either one of (in order of decreasing importance) emerg, alert, crit, err, warning, notice, info, debug, or an integer in the range 0…7
# This can be overridden with --log-level=.
#export SYSTEMD_LOG_LEVEL="warning"
# A boolean. If true, messages written to the tty will be colored according to priority.
# This can be overridden with --log-color=.
#export SYSTEMD_LOG_COLOR="true"
# A boolean. If true, console log messages will be prefixed with a timestamp.
# This can be overridden with --log-time=.
#export SYSTEMD_LOG_TIME="true"
# A boolean. If true, messages will be prefixed with a filename and line number in the source code where the message originates.
# This can be overridden with --log-location=.
#export SYSTEMD_LOG_LOCATION="true"
# A boolean. If true, messages will be prefixed with the current numerical thread ID (TID).
#export SYSTEMD_LOG_TID="true"
# The destination for log messages. One of console (log to the attached tty), console-prefixed (log to the attached tty but with prefixes encoding the log level and "facility", see syslog(3), kmsg (log to the kernel circular log buffer), journal (log to the journal), journal-or-kmsg (log to the journal if available, and to kmsg otherwise), auto (determine the appropriate log target automatically, the default), null (disable log output).
# This can be overridden with --log-target=
#export SYSTEMD_LOG_TARGET="auto"
# Firefox hardware acceleration driver
#export LIBVA_DRIVER_NAME="mesa"
# RUST
type cargo &> /dev/null && export PATH=$PATH:~/.cargo/bin
# PYTHON
#export PYTHONPATH="/usr/bin/python:/usr/bin/python3:/usr/bin/python3.10"
#export PATH="$PATH:$PYTHONPATH"
type activate-global-python-argcomplete &> /dev/null && export PYTHON_ARGCOMPLETE_OK="TRUE"
# PYENV
type pyenv &> /dev/null && export PYENV_ROOT="$HOME/.pyenv"
type pyenv &> /dev/null && [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
type pyenv &> /dev/null && eval "$(pyenv init -)"
# RUBY
#export GEM_HOME=/home/burp/.gem/ruby/3.3.0
#export GEM_PATH=/usr/lib/ruby/gems/3.3.0:/home/burp/.gem/ruby/3.3.0
export PATH=$PATH:$GEM_PATH:$GEM_HOME/bin
# For arch: Also changeable with 'archlinux-java'
# JAVA
#export JAVA_HOME="/usr/lib/jvm/java-17-openjdk/bin"
#export PATH="$JAVA_HOME:$PATH"
# LUA
#export LUA_PATH=""
# GO
#export GOPATH=$HOME/.local/bin
#export PATH=$PATH:$GOPATH:/usr/local/go/bin
# RANGER
export RANGER_LOAD_DEFAULT_RC="FALSE"
# RIPGREP
#export RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case "
#export INITIAL_QUERY="${*:-}"
# FZF
#export PATH=$PATH:$HOME/.fzf/bin
#export FZF_PREVIEW_COLUMNS=0
#export FZF_PREVIEW_LINES=0
export FZF_DEFAULT_COMMAND="find / -type f"
type fd &> /dev/null && export FZF_DEFAULT_COMMAND="fd --search-path / --type f --hidden"
#export FZF_DEFAULT_OPTS='--height=66% --layout=reverse-list --hscroll-off=50 --filepath-word --cycle --prompt="$>" --color=dark,fg:cyan'
#label=$(curl -s http://metaphorpsum.com/sentences/1)
#export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --border --border-label=\"╢ $label ╟\" --border-label-pos=3 --color=label:italic:magenta"
#fi
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
#export FZF_CTRL_T_OPTS='--preview="kitty icat --clear --transfer-mode=memory --stdin=no --place=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}@0x0 {}'
#export FZF_CTRL_T_OPTS='--preview='\''kitten icat --clear --transfer-mode=memory --stdin=no --place=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}@110x1 {} > /dev/tty'\'' --bind ctrl-t:change-preview-window(down|hidden|)'
export FZF_ALT_C_OPTS='--preview "tree -C {}"
--bind "ctrl-v:become(vlc --recursive expand {})"
--bind "ctrl-v:become(cd .. && __fzf_cd__})"
--bind "ctrl-g:become(. ~/.fzf/shell/ripgrep-directory.bash && cd {} && ripgrep-dir > /dev/tty)"'
export FZF_ALT_C_OPTS=$FZF_ALT_C_OPTS
export FZF_CTRL_R_OPTS="--preview 'echo {}' \
--preview-window up:3:hidden:wrap \
--bind 'ctrl-t:toggle-preview' \
--bind 'alt-c:execute-silent(echo -n {2..} | xclip -i -sel c)+abort' \
--color header:italic --header 'Press ALT-C to copy command into clipboard'"
export FZF_CTRL_R_OPTS=$FZF_CTRL_R_OPTS
export FZF_BIND_TYPES='fd --search-path / --type f --hidden | xargs -n 5 basename -a | perl -ne '\''print $1 if m/\.([^.\/]+)$/'\'' | sort -u'
# AUTOJUMP
[ -s /etc/profile.d/autojump.sh ] && source /etc/profile.d/autojump.sh
# THEFUCK
type thefuck &> /dev/null && eval $(thefuck --alias f)
# EMACS
#export PATH="~/.emacs.d/bin/:$PATH"
# KITTY
export KITTY_PATH=~/.local/bin/:~/.local/kitty.app/bin/
export PATH=$KITTY_PATH:$PATH
# NINJA
#export PATH=$PATH:/usr/bin/ninja
# NIX (apx included)
#export PATH=$PATH:$HOME/.nix-profile/bin
# MANGOHUD
# export MANGOHUD=1
# LIBVIRT
#export LIBVIRT_DEFAULT_URI=qemu:///system
export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc