-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
52 lines (43 loc) 路 2 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
################################################################
# .zshrc - core environment variables #
################################################################
# -> symlinked to ~/.zshenv #
# #
# Executed when a new ZSH session is launched. #
# Set XDG paths and other core environment variables. #
################################################################
# set default apps
export BROWSER="safari"
export EDITOR="codium"
export PAGER="less"
# set XDG paths
export XDG_BIN_HOME=~/.local/bin
export XDG_CACHE_HOME=~/.local/var/cache # where user-specific non-essential cached data should be written
export XDG_CONFIG_HOME=~/.config # where user-specific configurations should be written
export XDG_DATA_HOME=~/.local/share # where user-specific data files should be written
export XDG_LIB_HOME=~/.local/lib
export XDG_STATE_HOME=~/.local/state # where user-specific state files should be written
# respect XDG paths
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
# export CURL_HOME="${XDG_CONFIG_HOME}/curl"
export LESSHISTFILE="-" # disable less history
# export PIP_CONFIG_FILE="${XDG_CONFIG_HOME}/pip/pip.conf"
# export PIP_LOG_FILE="${XDG_DATA_HOME}/pip/log"
export PYENV_ROOT="${XDG_DATA_HOME}/pyenv"
export RUSTUP_HOME="${XDG_DATA_HOME}/rustup"
export STARSHIP_CONFIG="${XDG_CONFIG_HOME}/starship/starship.toml"
export TMUX_PLUGIN_MANAGER_PATH="${XDG_DATA_HOME}/tmux/plugins"
# export VSCODE_EXTENSIONS="${XDG_DATA_HOME}/vscode
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
# export PNPM_HOME=~/Library/pnpm
# dotfiles
export DOTFILES=~/Setup/dotfiles
export DOTBOT_DIR="$DOTFILES/vendor/dotbot"
export HOMEBREW_BUNDLE_FILE="$DOTFILES/scripts/macos/brew/Brewfile"
# add local sbin to path
export PATH="/usr/local/sbin:$PATH"
# add dotbot to path
export PATH="$DOTBOT_DIR/bin:$PATH"
# disable telemetry for tools that support this flag
export DO_NOT_TRACK=1
. "$CARGO_HOME/env"