3 ms·
To be fair, that's not even a command; that's a shell expansion that automatically substitutes your previous command in place of the !! before executing it.
by nuclear_eclipse 15y ago
To be fair, that's not even a command; that's a shell expansion that automatically substitutes your previous command in place of the !! before executing it.
- lanstein 15y agoThank you for another '...and this is why I love HN' moment.
- Nick_C 15y agoJust be aware it may not execute the command you think. man bash for HISTIGNORE. Personally I never use it with sudo; it's too dangerous.
- nuclear_eclipse 15y agoThis is also why I disabled HISTIGNORE in both bash and zshell. zshell also allows me to press TAB to expand the command in-place before I press enter, so I can still use the shortcut without the danger.