I finally realised that the reason was I was pressing CTLR-S for saving a file out of sheer habit. CTLR-S on bash generally means XOFF (output off) and you need to do a CTLR-Q to turn it back on.
Instead of that a simple addition to .bash_profile can save you the trouble.
stty -ixon
However even with this I was getting a statment such as i-search when I would type CTLR-S.
For that I removed the binding from my bash shell.
bind -r '\C-s'
So all in all the changes need in your .bash_profile is
bind -r '\C-s'
stty -ixon
Thanks a lot. even I was stuck for an hour and running new session every time. PS I was using ctrl + A and pressing by mistake ctrl + s.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeletethanks, tricky, but useful.
ReplyDeleteAlso, I am on way for how to "Save the screen sockets/sessions in case of reboots"
DeleteIt's hilarious that such a strange, destructive and probably nowadays totally useless feature is even enabled by default.
ReplyDelete