-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_zshenv
22 lines (22 loc) · 898 Bytes
/
dot_zshenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export LANG=en_US.utf8
[ -d $HOME/git ] && export CDPATH="$HOME:$HOME/git"
[ -f /usr/bin/nvim ] && export EDITOR=/usr/bin/nvim
# FZF
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS="
--layout=reverse
--info=inline
--height=80%
--multi
--preview '([[ -f {} ]] && (bat --style=numbers --color=always {} || cat {})) || ([[ -d {} ]] && (tree -C {} | less)) || echo {} 2> /dev/null | head -200'
--color='hl:148,hl+:154,pointer:032,marker:010,bg+:237,gutter:008'
--prompt='∼ ' --pointer='▶' --marker='✓'
--bind '?:toggle-preview'
--bind 'ctrl-a:select-all'
"
[ -d ~/.cargo/bin/ ] && export PATH="$HOME/.cargo/bin:$PATH"
export LIBVIRT_DEFAULT_URI=qemu:///system
export DISABLE_AUTO_UPDATE=true
[ -d ~/bin/ ] && export PATH=$PATH:$HOME/bin
export MAKEFLAGS="-j $(grep -c '^processor' /proc/cpuinfo)"