I think it was zsh -z but I’m not sure. It’s for doing this:
zsh -z
reload_zsh() { echo "Reload zsh" zsh -z [ -f $ZSHRC ] && source $ZSHRC }
This is the function defined by Oh My Zsh, I don’t quite understand it, so I won’t use it:
function _omz::reload { # Delete current completion cache command rm -f $_comp_dumpfile $OMZ_COMPDUMP # Old zsh versions don't have ZSH_ARGZERO local zsh="${ZSH_ARGZERO:-${functrace[-1]%:*}}" # Check whether to run a login shell [[ "$zsh" = -* || -o login ]] && exec -l "${zsh#-}" || exec "$zsh" }
I just start a new zsh shell =/
zsh
Ask specific questions about how to code something in sh, bash, zsh, etc
General bash discussion on lemmy.ml
Create Post From: lemmy.ml
This is the function defined by Oh My Zsh, I don’t quite understand it, so I won’t use it:
function _omz::reload { # Delete current completion cache command rm -f $_comp_dumpfile $OMZ_COMPDUMP # Old zsh versions don't have ZSH_ARGZERO local zsh="${ZSH_ARGZERO:-${functrace[-1]%:*}}" # Check whether to run a login shell [[ "$zsh" = -* || -o login ]] && exec -l "${zsh#-}" || exec "$zsh" }
I just start a new
zsh
shell =/