-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
46 lines (39 loc) · 1.08 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
#----------------------------
# Environment variables
#----------------------------
# pass should paste passwords with middle click
export PASSWORD_STORE_X_SELECTION=primary
export EDITOR="nvim"
export VISUAL="nvim"
export TERMINAL="xterm"
export BROWSER="firefox"
export JULIA_NUM_THREADS=8
# Preview directory on M-c
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
# Default options
export FZF_DEFAULT_OPTS='-m --cycle
--bind=f4:toggle-preview
--bind=alt-e:preview-down
--bind=alt-y:preview-up'
# Use rg as grep tool
if command -v rg &> /dev/null; then
export FZF_DEFAULT_COMMAND='rg --files'
fi
# Append extra bin folders to PATH variable
path=("$HOME/.nix-profile/bin"
"$HOME/bin"
"$HOME/.bin"
"$HOME/.local/bin"
"$XDG_CONFIG_HOME/herbstluftwm/scripts"
$path)
export PATH
# Lua packages
if command -v luarocks &> /dev/null; then
eval $(luarocks path --bin)
fi
# Haskell packages
if [ -f "${XDG_CONFIG_DATA}/.ghcup/env" ]; then
source "${XDG_CONFIG_DATA}/.ghcup/env"
elif [ -f "$HOME/.ghcup/env" ]; then
source "$HOME/.ghcup/env" # ghcup-env
fi