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:
parent
fa4eeb21fd
commit
c4e992ab98
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue