DEV Community

Discussion on: Dirty tip: How to remember weird commands you sometimes need

Collapse
moopet profile image
Ben Sinclair

Turn them into aliases!

 history | grep '[A-Z]FIX' | sed -e 's/^[ 0-9]*//' -e 's/ /="/' -e 's/$/"/' >> ~/.bashrc
Collapse
zcserei profile image
Cserei Zoltán Author

this one is really nice, thanks!