News for hackers. Stuff that matters.
Re:Kali Linux 2020.3 by codetrotter on Monday August 24, 2020 @05:51AM (#24259034)
> E.g. if I realise while typing that I'm not in the right directory, `git clone<alt-q>cd src<return>`.

With bash I’d just Ctrl+a and type “cd src ;” and then press ctrl+e and continue typing what I was typing.

I got so used to doing it that way, that even after switching to zsh I still do it this way.

The disadvantage of my way of doing it is if you typo the path. But I tab complete pretty much always, so in practice I don’t have the problem of typoing directory names without noticing.

I probably should learn those zsh ways of doing things. Will try to remember to do it the zsh way next time I need to do something like the things you mentioned.

Re:Kali Linux 2020.3 by mkl on Monday August 24, 2020 @06:11AM (#24259150)
If you use && instead of ; then you won't have the typo problem.
Re:Kali Linux 2020.3 by codetrotter on Monday August 24, 2020 @06:29PM (#24266272)
True, but that means typing another character and I am lazy :p