-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshenv
95 lines (70 loc) · 2.22 KB
/
dot_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
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
# REF:
# - https://github.com/JoosepAlviste/dotfiles/blob/master/dots/zshenv
##########################################
# ENVIRONMENT VARIABLES
source "$HOME/.zshenv_private"
export DISABLE_AUTO_UPDATE=true
##########################################
# XDG
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
if [ ! -w ${XDG_RUNTIME_DIR:="/run/user/$UID"} ]; then
XDG_RUNTIME_DIR=/tmp
fi
export XDG_RUNTIME_DIR
##########################################
# COMMON
export ZSH="$HOME/.oh-my-zsh"
export NVIM_APPNAME='nvim'
export TERM='xterm-256color' # Not to put it in .zprofile bcs of tmux mess up with $TERM variable
export EDITOR='nvim'
# export VISUAL='code --wait'
export VISUAL="$EDITOR"
export PAGER='bat' # 'less', 'more', 'bat', no 'delta'!
export GIT_PAGER='delta' # 'less', 'more', 'bat', 'delta'
export BROWSER='brave'
# export BROWSER='google-chrome-stable'
##########################################
# FZF
# https://github.com/catppuccin/fzf - not use background for transparent
# NOTE: With border left option, it cannot show preview-label
export FZF_DEFAULT_OPTS="
--color fg+:#f9e2af
--color fg:#cdd6f4
--color header:#cba6f7
--color hl+:#eba0ac
--color hl:#f38ba8
--color info:#89b4fa
--color marker:#89b4fa
--color pointer:#eba0ac
--color prompt:#eba0ac
--color spinner:#f5e0dc
--color border:#b4befe
--border
--cycle
--height ~100%
--layout reverse
--preview-window right,60%,border-left,wrap
--bind alt-w:toggle-preview-wrap
--bind ctrl-b:preview-page-up
--bind ctrl-d:preview-half-page-down
--bind ctrl-e:toggle-preview
--bind ctrl-f:preview-page-down
--bind ctrl-g:preview-top
--bind ctrl-h:preview-bottom
--bind ctrl-u:preview-half-page-up
"
# --bind one:accept # For accept if there's only 1
export FZF_DEFAULT_COMMAND="rg --files --no-ignore-vcs --hidden --ignore-file $HOME/ripgrep/ignore"
##########################################
# BAT
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export MANROFFOPT='-c'
##########################################
# ZOXIDE
export ZOXIDE_CMD_OVERRIDE="cd"
##########################################
# ATAC
export ATAC_MAIN_DIR="$HOME/.config/atac"
export ATAC_KEY_BINDINGS="$HOME/.config/atac/key_bindings.toml"