From bc23116aa88795ffd85c5e6dc6e87af0a95a51a4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 28 Mar 2022 06:14:46 +0200 Subject: [PATCH] Zsh: Fix some things --- .config/zsh/.zprofile | 4 ++-- .config/zsh/.zshrc | 2 +- .config/zsh/zaliases | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 6b934f9..1afff98 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -8,8 +8,8 @@ export HISTFILE="${ZDOTDIR}/.zsh_history" export ZSH_CACHE_DIR="${XDG_CACHE_HOME:-${HOME}/.cache}/zsh" mkdir -p "${ZSH_CACHE_DIR}" -if [[ -d "${HOME}/.local/share/man/" ]]; then - export MANPATH="${MANPATH}:${HOME}/.local/share/man" +if [[ -d "${XDG_DATA_HOME:-${HOME}/.local/share}/man/" ]]; then + export MANPATH="${MANPATH}:${XDG_DATA_HOME:-${HOME}/.local/share}/man" fi ############################ Editor ############################################ diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index e8e4df5..26faf04 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -57,7 +57,7 @@ add-zsh-hook zshaddhistory _my_import_history_zshaddhistory export ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) # Set up in .zprofile. -source ${ZSH_PLUGIN_SOURCE} +source "${ZSH_PLUGIN_SOURCE}" # Fuzzy finder, . export FZF_CTRL_R_OPTS="--layout=reverse" diff --git a/.config/zsh/zaliases b/.config/zsh/zaliases index d1c08d6..f240a10 100644 --- a/.config/zsh/zaliases +++ b/.config/zsh/zaliases @@ -20,7 +20,7 @@ alias ltail="tail -n 50" alias lhead="head -n 50" alias po="popd" -alias d="print ${dirstack}" +alias d='print ${dirstack}' alias man="LC_MESSAGES=C man" alias make="LC_MESSAGES=C make"