I think it was zsh -z but I’m not sure. It’s for doing this:

reload_zsh() {
  echo "Reload zsh"
  zsh -z
  [ -f $ZSHRC ] && source $ZSHRC
}
@ajr@lemmy.ml
creator
link
fedilink
14M

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"
}
@thann
mod
admin
link
fedilink
14M

I just start a new zsh shell =/

Ask specific questions about how to code something in sh, bash, zsh, etc

General bash discussion on lemmy.ml

Create Post From:
lemmy.ml

  • 0 users online
  • 2 users / day
  • 2 users / week
  • 2 users / month
  • 5 users / 6 months
  • 17 subscribers
  • 9 Posts
  • 17 Comments
  • Modlog