-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshenv
62 lines (54 loc) · 2.12 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
export XDG_CONFIG_HOME="$HOME/.config"
export EDITOR="nvim"
export MANPAGER='nvim +Man!'
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export HISTFILE="$ZDOTDIR/.zhistory" # History filepath
export HISTSIZE=10000 # Maximum events for internal history
export SAVEHIST=10000 # Maximum events in history file
# FZF specifics
export FZF_DEFAULT_COMMAND='rg --files --hidden --glob "!.git"'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
FZF_COLORS="bg+:-1,\
fg:gray,\
fg+:white,\
border:black,\
spinner:0,\
hl:yellow,\
header:blue,\
info:green,\
pointer:red,\
marker:blue,\
prompt:gray,\
hl+:red"
export FZF_DEFAULT_OPTS="--height 60% \
--border sharp \
--layout reverse \
--color '$FZF_COLORS' \
--prompt '∷ ' \
--pointer ▶ \
--marker ⇒"
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -n 10'"
export FZF_COMPLETION_DIR_COMMANDS="cd pushd rmdir tree ls"
# VI CMD mode
export KEYTIMEOUT=1
# Timewarrior config
if command -v timew &> /dev/null; then
export TIMEWARRIORDB="$HOME/taskwarrior/.timewarrior"
fi
export NVM_DIR="$HOME/.config/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# in case password store is in use
[ -d "$HOME/.password-store/" ] && export PASSWORD_STORE_ENABLE_EXTENSIONS=true && export PASSWORD_STORE_CHARACTER_SET='[:alnum:].,!?&*%_$#^@{}[]()|=/+-'
[ -d "$HOME/usr/bin" ] && export PATH=$PATH:$HOME/usr/bin
[ -d "$HOME/bin" ] && export PATH=$HOME/bin:$PATH
[ -d "$HOME/.cargo/bin" ] && export PATH=$PATH:$HOME/.cargo/bin
[ -d "$HOME/.local/bin" ] && export PATH=$PATH:$HOME/.local/bin
[ -d "$HOME/go/bin" ] && export PATH=$PATH:$HOME/go/bin
[ -d "$HOME/.config/emacs/bin" ] && export PATH=$PATH:$HOME/.config/emacs/bin
[ -d "/usr/local/opt/ruby/bin" ] && export PATH="/usr/local/opt/ruby/bin:$PATH"
[ -f "$HOME/.rbenv/bin/rbenv" ] && eval "$(~/.rbenv/bin/rbenv init - zsh)"
[ -d "$HOME/node_modules/.bin" ] && export PATH="$HOME/node_modules/.bin:$PATH"
[ -d "$HOME/.krew/bin" ] && export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
[ -d "$HOME/spack/share" ] && source "$HOME/spack/share/spack/setup-env.sh"
export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/sbin:$PATH"