-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.zshenv
More file actions
40 lines (31 loc) · 1.25 KB
/
.zshenv
File metadata and controls
40 lines (31 loc) · 1.25 KB
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
# XDG base directories.
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
# Make sure this stuff is in the path.
export PATH="$HOME/.nvim/bin:$PATH" # neovim
export PATH="$HOME/.cargo/bin:$PATH" # cargo
export PATH="$HOME/.local/bin:$PATH" # Local scripts.
export PATH="$HOME/go/bin:$PATH" # Go binaries.
# zsh configuration.
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export SHELL_SESSIONS_DISABLE=1
# Man pages
export MANPAGER='nvim +Man!'
# Set up neovim as the default editor.
EDITOR="$(which nvim)"
export EDITOR
export VISUAL="$EDITOR"
# Disable Apple's save/restore mechanism.
export SHELL_SESSIONS_DISABLE=1
# Don't let Ghostty mess up with the cursor.
export GHOSTTY_SHELL_FEATURES="title,sudo"
# Ripgrep.
export RIPGREP_CONFIG_PATH="$XDG_CONFIG_HOME/.ripgreprc"
# fzf setup.
export FZF_DEFAULT_OPTS="--color=fg:#f8f8f2,bg:#0e1419,hl:#e11299,fg+:#f8f8f2,bg+:#44475a,hl+:#e11299,info:#f1fa8c,prompt:#50fa7b,pointer:#ff79c6,marker:#ff79c6,spinner:#a4ffff,header:#6272a4 \
--cycle --pointer=▎ --marker=▎"
# Check if a local override file exists and source it.
# shellcheck source=/dev/null
[[ -f "$HOME/.zshenv.local" ]] && source "$HOME/.zshenv.local"