From d483b23eb15b95d4bb0e48cc21e62dde7cdeb01f Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 24 Apr 2022 23:02:02 +0200 Subject: [PATCH] Zsh-ify PATH and MANPATH --- .config/zsh/.zprofile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 472afd2..8b2ae48 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -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 ############################################