-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.zshenv
53 lines (40 loc) · 1.46 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
47
48
49
50
51
52
53
# XDG base directories.
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
# PATH
export PATH="$HOME/.local/bin:$PATH" # Local scripts
export PATH="$XDG_CONFIG_HOME/bin:$PATH" # Custom scripts
export PATH="$XDG_CONFIG_HOME/tmux/bin:$PATH" # Tmux scripts
export PATH="$XDG_CONFIG_HOME/rust/.cargo/bin:$PATH" # Cargo
export PATH="$XDG_CONFIG_HOME/go/bin:$PATH" # Go binaries
# Brew bundle file
export HOMEBREW_BUNDLE_FILE="$HOME/.dotfiles/Brewfile"
# zsh configuration.
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
# Man pages
export MANPAGER='nvim +Man!'
# Set up neovim as the default editor.
export EDITOR="$(which nvim)"
export VISUAL="$EDITOR"
export GIT_EDITOR="$EDITOR"
# Don't let Ghostty mess up with the cursor.
export GHOSTTY_SHELL_INTEGRATION_NO_CURSOR=1
# Rust
export RUSTUP_HOME="$XDG_CONFIG_HOME/rust/.rustup"
export CARGO_HOME="$XDG_CONFIG_HOME/rust/.cargo"
# Go
export GOPATH="$XDG_CONFIG_HOME/go"
export GOBIN="$XDG_CONFIG_HOME/go/bin"
# Bun
export BUN_INSTALL="$HOME/.config/bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# Bat
export BAT_CONFIG_PATH="$HOME/.config/bat/bat.conf"
# Fzf
show_file_or_dir_preview="if [ -d {} ]; then eza --tree --color=always {} | head -200; else bat -n --color=always --line-range :500 {}; fi"
export FZF_CTRL_T_OPTS="--preview '$show_file_or_dir_preview'"
# Set 1ms timeout for Esc press so we can switch
# between vi "normal" and "command" modes faster
export KEYTIMEOUT=1
# nvm
export NVM_DIR="$XDG_CONFIG_HOME/nvm"