Skip to content

Commit

Permalink
fix(zsh): proxy original ZDOTDIR to user's .zshrc (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebradil committed Dec 12, 2023
1 parent fa97417 commit 8e5bea7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shell/zsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ elif [[ -f "/etc/zsh/zshrc" ]] ; then
fi
if [[ -f "${{_KUBIE_USER_ZDOTDIR:-$HOME}}/.zshrc" ]] ; then
source "${{_KUBIE_USER_ZDOTDIR:-$HOME}}/.zshrc"
ZDOTDIR=$_KUBIE_USER_ZDOTDIR \
source "${{_KUBIE_USER_ZDOTDIR:-$HOME}}/.zshrc"
fi
if [[ -f "/etc/zlogin" && "$KUBIE_LOGIN_SHELL" == "1" ]] ; then
Expand Down Expand Up @@ -161,6 +162,6 @@ add-zsh-hook precmd __kubie_cmd_pre_cmd__
let mut child = exit_cmd.spawn()?;
child.wait()?;
}

Ok(())
}

0 comments on commit 8e5bea7

Please sign in to comment.