Sometimes I want to iterate on an alias. You can unalias an alias like this:
unalias aliasname
This is particularly useful when changing an alias to a function. When you change this:
alias up="cd .."
To this:
up() {
# Alternative implementation
}
And source your config, you’ll likely see this (Zsh example):
.zshrc: defining function based on alias `up'
.zshrc: parse error near `()'
Unaliasing is an elegant path forward.