From 0bb93c3b11322fd0a00c3144bcbe39eedccb8691 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Thu, 29 Feb 2024 00:15:08 +0300 Subject: [PATCH] zsh: minor fixes --- .config/zsh/lib/selfservice.zsh | 5 +++-- .config/zsh/lib/title.zsh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/zsh/lib/selfservice.zsh b/.config/zsh/lib/selfservice.zsh index 4442d89..3f8b263 100644 --- a/.config/zsh/lib/selfservice.zsh +++ b/.config/zsh/lib/selfservice.zsh @@ -10,7 +10,7 @@ dotfiles-git() { ( GIT_DIR="${ZSHU[d_dotfiles]}/repo.git" GIT_WORK_TREE="${ZSHU[d_zdot]}" set +a - zsh -i + z-reload ) } dotfiles-gen-gitignore() { @@ -54,8 +54,9 @@ z-update() { } z-reload() { + export ZDOTDIR="${ZSHU[d_zdot]}" exec -a "${ZSH_ARGZERO}" "${ZSH_NAME}" "${argv[@]}" - echo "unable to reload (something went wrong), code $?" 1>&2 + echo "unable to reload (something went wrong), code $?" >&2 return 1 } diff --git a/.config/zsh/lib/title.zsh b/.config/zsh/lib/title.zsh index a254757..69f6ade 100644 --- a/.config/zsh/lib/title.zsh +++ b/.config/zsh/lib/title.zsh @@ -54,5 +54,5 @@ __z_title_precmd() { add-zsh-hook precmd __z_title_precmd else - echo "tab/window title handling is disabled due to missing hook support" 1>&2 + echo "tab/window title handling is disabled due to missing hook support" >&2 fi