I can't remember the trick where I could get the last command without running it:let's say I want to be be able to access the command !1255 when pressing the up arrow key and modify the command. So what's the trick to call the command, make it be shown up in the command line but not executed and afterwards accessible via the arrow key up?I tried with putting an echo, but then I have an echo before the command, I don't remember how to do it correctly. 
How to recall a previous command (without execution) in order to change it?
command line;terminal;command;command history;history expansion
!1255:pWill do this! is history recall1255 is the line number:p prints but does not executeThen you can use up-arrow to get ther previous (unexecuted) command back and you can change it as you need.I often combine this with hg (History Grep) - my favorite alias. $ alias hg  # Maybe use hgr instead if you are a Mercurial CLI user.alias hg='history | tail -200 | grep -i'This searches for text on a recent history line, regardless of case and is used this way:When I want to search for recent vi commands to edit a certain file and then I want to re-use one of them to edit the same file but with a different file extension.  $ hg variables 6153  vi Variables/user-extensions.js  6176  vi Variables/user-extensions.js  6178  vi Variables/user-extensions.js  6190  vi Variables/user-extensions.js  6230  hg variables$ # Notice the difference in case with V and v is ignored$ !6190:pvi Variables/user-extensions.js $ [up-arrow]$ vi Variables/user-extensions.[now change .js to .html]I also define hga (History Grep All) to search my entire history:$ alias hgaalias hga='history | grep -i'but I don't use it much because my history is (intentionally) very large and I get too much output that later affects scrolling back thru pages in my terminal.