alias sl='fc -ln -1 | sed "s/^\s*//" >> ~/.saved_commands.txt' alias slg='< ~/.saved_commands.txt grep'
$ foo_cmd args #this command does this awesome thing $ sl