From c4e992ab9817ed715bee598a6f82c0a65c6ca0bb Mon Sep 17 00:00:00 2001 From: histalek Date: Mon, 12 Jul 2021 17:22:39 +0200 Subject: [PATCH] zsh: Change how `updatealias` reloads zsh Seems like reloading zsh via sourcing .zshrc is a bad idea [1]. The best way seems to be to completely restart zsh or at least use 'exec zsh'. [1] https://github.com/romkatv/powerlevel10k#weird-things-happen-after-typing-source-zshrc --- .config/oh-my-zsh/aliases.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/oh-my-zsh/aliases.zsh b/.config/oh-my-zsh/aliases.zsh index 3d80cbc..7d5e3bb 100644 --- a/.config/oh-my-zsh/aliases.zsh +++ b/.config/oh-my-zsh/aliases.zsh @@ -2,7 +2,7 @@ ## Alias handling alias editalias='vim $HOME/.config/oh-my-zsh/aliases.zsh' -alias updatealias='source $HOME/.zshrc' +alias updatealias='exec zsh' ## https://www.atlassian.com/git/tutorials/dotfiles alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'