You are looking for bind -m emacs-meta '"\C-j": vi-editing-mode' and possibly adding bind -m vi-insert '"\C-e": emacs-editing-mode'
You could easily improve upon that. For example the following will change the cursor to a block in emacs mode, an underline in vi-command and a line in vi-insert in most terminals. set show-mode-in-prompt on set…
I've been doing this for at least a decade. Was introduced to the idea by a colleague who might have read this blog post. I usually do the same with commands where you are able to create sub-commands too, like git-,home…
Heredocs (described in the docs[1] under "shell form") was introduced 3 years ago[1]. The flag '--squash' has been in podman for quite a while[2]. It might be time for you to upgrade your tooling. [0]:…
Curl has the ability to use the OS certificate store. There is also the option (at invocation) to not use any other certificate stores than the one provided by the user (at invocation). The version which is shipped by…
You are looking for bind -m emacs-meta '"\C-j": vi-editing-mode' and possibly adding bind -m vi-insert '"\C-e": emacs-editing-mode'
You could easily improve upon that. For example the following will change the cursor to a block in emacs mode, an underline in vi-command and a line in vi-insert in most terminals. set show-mode-in-prompt on set…
I've been doing this for at least a decade. Was introduced to the idea by a colleague who might have read this blog post. I usually do the same with commands where you are able to create sub-commands too, like git-,home…
Heredocs (described in the docs[1] under "shell form") was introduced 3 years ago[1]. The flag '--squash' has been in podman for quite a while[2]. It might be time for you to upgrade your tooling. [0]:…
Curl has the ability to use the OS certificate store. There is also the option (at invocation) to not use any other certificate stores than the one provided by the user (at invocation). The version which is shipped by…