1
0
Fork 0

Zsh-ify PATH and MANPATH

This commit is contained in:
tastytea 2022-04-24 23:02:02 +02:00
parent 0ceb3c9e73
commit d483b23eb1
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 4 additions and 2 deletions

View File

@ -3,13 +3,15 @@ function() # Keep local variables in here.
############################## Paths ###########################################
export PATH="${HOME}/.local/bin:${PATH}:${HOME}/bin"
path=(${HOME}/.local/bin ${path} ${HOME}/bin)
path=(${(u)path})
export HISTFILE="${ZDOTDIR}/.zsh_history"
export ZSH_CACHE_DIR="${XDG_CACHE_HOME:-${HOME}/.cache}/zsh"
mkdir -p "${ZSH_CACHE_DIR}"
if [[ -d "${XDG_DATA_HOME:-${HOME}/.local/share}/man/" ]]; then
export MANPATH="${MANPATH}:${XDG_DATA_HOME:-${HOME}/.local/share}/man"
manpath=(${manpath} ${XDG_DATA_HOME:-${HOME}/.local/share}/man)
manpath=(${(u)manpath})
fi
############################ Editor ############################################