-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshenv
62 lines (44 loc) · 1.49 KB
/
zshenv
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
# Prefer US English and use UTF-8.
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
# Hide % sign at EOL
export PROMPT_EOL_MARK=''
# Export homebrew to path
export PATH="/opt/homebrew/bin:$PATH"
# TODO: this should be dynamic depending of if the bin exists
# Expose postgres binaries
export PATH=/opt/homebrew/opt/postgresql@14/bin:$PATH
# Editor
export EDITOR='nvim'
# Don’t clear the screen after quitting a manual page.
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
# Color them
export LS_COLORS="$(vivid generate snazzy)"
# Homebrew
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_CASK_OPTS=--no-quarantine
# Set IPDB as default debugger
export PYTHONBREAKPOINT=ipdb.set_trace
# Docker
export DOCKER_BUILDKIT=1
# Rust
export PATH="$PATH:$HOME/.cargo/bin"
# Golang
export PATH="$PATH:$(go env GOPATH)/bin"
# FZF
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_CTRL_T_OPTS="
--preview 'bat -n --color=always {}'
--bind 'ctrl-/:change-preview-window(down|hidden|)'"
# forgit
export forgit_add=gaf
export forgit_diff=gdf
export forgit_checkout_branch=gch
export FORGIT_LOG_FZF_OPTS="--reverse"
export FORGIT_LOG_FORMAT="%C(auto)%h%Creset -%C(bold red)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset"
# zoxide
export _ZO_EXCLUDE_DIRS="$HOME/Downloads/*:$HOME/repos/z/isolation-browser/*:$HOME/.dotfiles/*"
# node/npm
export COREPACK_ENABLE_AUTO_PIN=0
export NVIM_APPNAME=lazyvim