You're viewing a comment by F.Baube and its responses.

F.Baube Permalink
April 13, 2008, 23:30
# "-l" says use stdout, not a special file
alias h='fc -l; echo r NNN to repeat one, or ; echo r CMD to repeat the last command beginning with CMD'
alias r='fc -s'
# From "man history":
# In the second form ("fc -s"), command is 
# re-executed [..]
# A useful alias to use with this is `r=fc -s', 
# so that typing `r cc'' runs the last command 
# beginning with `cc' and typing `r'' re-executes 
# the last command.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "sandbox_42": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.