-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshenv
79 lines (66 loc) · 2.2 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#--< XDG user directories: https://github.com/adrg/xdg/blob/31e6a328d142d3b8ed43fda69c4f2b55e77d8e79/README.md#xdg-base-directory
export XDG_CONFIG_HOME="$HOME/Library/Application Support"
export XDG_CACHE_HOME="$HOME/Library/Caches"
export XDG_DATA_HOME="$HOME/Library/Application Support"
export XDG_STATE_HOME="$HOME/Library/Application Support"
# XDG user directories -->
#--< Homebrew
export HOMEBREW_PREFIX="/opt/homebrew"
export HOMEBREW_CELLAR="/opt/homebrew/Cellar"
export HOMEBREW_REPOSITORY="/opt/homebrew"
export MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:"
export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}"
export FPATH="/opt/homebrew/share/zsh/site-functions:$FPATH"
# Homebrew -->
#--< macOS tar: https://unix.stackexchange.com/a/282142
export COPYFILE_DISABLE=1
# macOS tar -->
export EDITOR="nvim"
#--< zsh
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export HISTFILE="$XDG_DATA_HOME/zsh/history"
export FPATH="$ZDOTDIR/completions:$FPATH"
# zsh -->
#--< fzf
export FZF_DEFAULT_COMMAND='fd --type f'
# fzf -->
#--< Docker
export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
export MACHINE_STORAGE_PATH="$XDG_DATA_HOME/docker-machine"
# Docker -->
#--< Node
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
export NODE_REPL_HISTORY="$XDG_DATA_HOME/node/history"
#--< pnpm
export PNPM_HOME="$XDG_DATA_HOME/pnpm"
export PATH="$PNPM_HOME:$PATH"
# pnpm -->
# Node -->
#--< Rust
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export PATH="$CARGO_HOME/bin:$PATH"
# Rust -->
#--< Golang
export GOPATH="$XDG_DATA_HOME/golang"
export PATH="$GOPATH/bin:$PATH"
# Golang -->
#--< Python
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py"
export PYTHONHISTORY="$XDG_DATA_HOME/python/history"
export PIPX_HOME="$XDG_DATA_HOME/pipx"
export PIPX_BIN_DIR="$PIPX_HOME/bin"
export PIPX_MAN_DIR="$PIPX_HOME/man"
export PATH="$PIPX_BIN_DIR:$PATH"
export RYE_HOME="$XDG_DATA_HOME/rye"
export PATH="$RYE_HOME/shims:$PATH"
export POETRY_HOME="$XDG_DATA_HOME/pypoetry"
export PATH="$POETRY_HOME/bin:$PATH"
# Python -->
#--< less
export LESSKEY="$XDG_CONFIG_HOME/less/key"
export LESSHISTFILE="$XDG_DATA_HOME/less/history"
# less -->
#--< gpg
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
# gpg -->