Skip to content

[NixOS] zsh shell-integration throwing error #5709

Discussion options

You must be logged in to vote

I found the alias definition, it's getting set by omz ... yay

/nix/store/bpxavgr3ragmy8s8369x3q71hbxwdr2z-oh-my-zsh-2025-01-30/share/oh-my-zsh/lib/correction.zsh:6>alias 'sudo=nocorrect sudo'

At least I can disable this:

if [[ "$ENABLE_CORRECTION" == "true" ]]; then
  alias cp='nocorrect cp'
  alias man='nocorrect man'
  alias mkdir='nocorrect mkdir'
  alias mv='nocorrect mv'
  alias sudo='nocorrect sudo'
  alias su='nocorrect su'

  setopt correct_all
fi

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Zombiefleischer
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@00-kat
Comment options

@Zombiefleischer
Comment options

@Zombiefleischer
Comment options

Answer selected by pluiedev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants