News for hackers. Stuff that matters.
Re:Kali Linux 2020.3 by mkl on Monday August 24, 2020 @06:09AM (#24259138)
> - The history is editable by default. If I move to a previous history line and change it, the old line disappears.

Press M-r to revert back to the original command.

> - No way to set a command aside. E.g. if I realise while typing that I'm not in the right directory, `git clone<alt-q>cd src<return>`.

Press M-# to comment out the current command and go to a new prompt, then up to get the commented command back, and M-3 M-# to uncomment it and run it (any number works, but 3 is the same key as #).

Re:Kali Linux 2020.3 by inetknght on Monday August 24, 2020 @11:39AM (#24261678)
Oh look! Magic!

I think if bash had some interactive help with this magic when it appears then it would be a lot more helpful and a lot less magical.

Re:Kali Linux 2020.3 by zests on Monday August 24, 2020 @12:17PM (#24262112)
I don't think bash really fits the type of program to have interactive tutorials. If you are serious about your command-line-fu its worth giving the manual a good read.

bind -P | grep '\\e'

https://www.gnu.org/software/bash/manual/

My favorite by far is '\e.' or 'M-.' which inserts the last arg from your previous command. Discovering this led me down the bash rabbit-hole of finding new commands, creating my own and really enjoying the bash shell. Did you know you can execute arbitrary code as one of these commands? I had one that ran 'docker ps' so I could list my containers in the middle of typing a command.