Suppose for example, the following implementation of ll:alias ls=ls -F -G         # colourise and display dir,exec,etc. iconsalias ll=ls -l -h -o      # long-list, use KB,MB,etc. sizes, no group idNow suppose I use ll, and while usually I'm glad for the lack of (what is usually) clutter, I actually want the group IDs.Is there any way of 'cancelling' an option, for example something like ll -!o?More simply put, but without obvious use case, a command like ! here that renders foo -B -!B equivalent to foo?Tagged zsh because that's what I use, but if a portable solution does exist obviously (?) that's preferred.
Cancel an option used in aliased command?
shell;zsh;alias
In case of ls and some others commands you can add another option(s) which will negate those existing in an alias.But as a general solution I think the best approach is the following:write an aliased command (do not put space after command)run a widget _expand_alias (M-x _expand_alias)remove unnecessary options and hit enterYou can bind this widget to some key (^Xa by default) if you need this procedure frequently.