Just a question to improve my bash skills. I always do this:
bash
$ history | grep some_long_command ... ... 123 some_long_command1......... 124 some_l
Put
alias r='fc -s'
in your .bashrc (home dir) then you can just type in
.bashrc
r
at the command prompt and you will execute a copy of the last command (same params) that is in your history. just hit up arrow to see what you have executed if you feel the need.