82
9
My morning coffee hadn't reached my brain yet when I forgot the quotes in:
alias grep="grep --color=always"
so instead I typed:
alias grep=grep --color=always
leaving me with:
--color=always
grep=grep
in my aliases.
When I try to cleanup the --color=always using unalias --color
I get:
bash: unalias: --: invalid option
unalias: usage: unalias [-a] name [name ...]
I tried escaping, quoting and begging, but I can not figure out how to make the commando unalias cleanup the mess.
(I know a restart will do the trick but surely there must be another way)
13Ha ha, now I got it stuck in mine also, working on it EDIT: Looks like choroba's answer worked for me – asmith – 2017-03-02T10:05:05.933
9Kind of reminds me of the old
echo > \\?\c:\windows\x.
, or that time Irm -rf * ~
by accident. – Jason C – 2017-03-03T01:08:41.890