|
|
|
|
|
by hikarudo
88 days ago
|
|
One trick I use all the time: You're typing a long command, then before running it you remember you have to do some stuff first. Instead of Ctrl-C to cancel it, you push it to history in a disabled form. Prepend the line with # to comment it, run the commented line so it gets added to history, do whatever it is you remembered, then up arrow to retrieve the first command. $ long_command <Home, #> $ #long_command <Enter> $ stuff_1
$ stuff_2 <Up arrow a few times> $ #long_command <home, del> $ long_command |
|
You write a command, you remember that you need to do something else first, press ctrl+q/the lines gets cleared, write a different command and after you press enter to run it the old command appears again :)