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
This commit is contained in:
histalek 2021-07-12 17:22:39 +02:00
parent fa4eeb21fd
commit c4e992ab98
No known key found for this signature in database
GPG key ID: ED1D6449704FDE03

View file

@ -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'