-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshenv
53 lines (42 loc) · 1.41 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
# /home/jim/.zshenv
#
# =================================================
# ~/.zshenv
# PURPOSE: - 1st zsh file to be sourced.
# - must be in ~/.zshenv
# - keep ENV (only) variables here
#
# NOTE:
#
# config: ~/.config/zsh/.zshrc, for functions, paths, options, alias
# alias: ~/.config/zsh/aliases.zsh
# =================================================
# ARTICLE:
# https://thevaluable.dev/zsh-install-configure/
# Suggests, ~/.zshenv only contain env!
# Config files put in ~/.config/zsh/
# =================================================
export XDG_CONFIG_HOME="$HOME/.config"
# nvim expects this:
export XDG_DATA_HOME="$HOME/.local/share"
#
export XDG_CACHE_HOME="$XDG_CONFIG_HOME/cache"
# ~/.config/zsh
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
# ~/dotfiles
export DOT_DIR="$HOME/dotfiles"
# TMUX expects to find .tmux.conf in HOME
export T=/home/jim/.tmux.conf
# HISTORY
export HISTFILE="$ZDOTDIR/.zhistory" # History filepath
export HISTSIZE=10000 # Maximum events for internal history
export SAVEHIST=1000 # Maximum events in history file
export HISTTIMEFORMAT='%F %T'
export HISTIGNORE='ll; ls -la;pwd'
export INC_IGNORE_DUPS="true" # if adjacent
export INC_APPEND_HISTORY="true" # all zsh shells show same hist
# env var
export A=~/dotfiles/aliases.zsh
export G=~/dotfiles/.gitignore
export V=~/.config/nvim/init.lua
export Z=$ZDOTDIR/.zshrc