I switched from Bash to Zsh on Ubuntu and I'm quite happy about it. However, there is something I really miss and I did not find how to achieve the same thing.
In Bash, whenever I was typing a long command and noticed I had to run something else before, I just had to comment it out like in the following:
me@home> #mysuperlongcommand with some arguments
me@home> thecommandIhavetorunfirst #and then: up up
me@home> #mysuperlongcommand with some arguments #I just need to uncomment it!
However, this quite recurrent situation is not as easy to address as with zsh
, given #mysuperlongcommand
will be run as such (and resulting in: zsh: command not found: #mysuperlongcommand
.
;
character in your comment, it will execute the proceeding commands (I just ran a rm -r operation I wasn't planning on running yet :P ). – Coster