11 karma · joined Mar 2, 2024 (2y ago) · 5 submissions
comment 2y ago · link · parent
set show-mode-in-prompt on
set emacs-mode-string \1\e[1 q\2
set vi-cmd-mode-string \1\e[3 q\2
set vi-ins-mode-string \1\e[5 q\2
The worst thing about the bash config of readline is that bash disables the key combinations for going from emacs-mode to vi-mode (ctrl-alt-j) and back (ctrl-e). They work everywhere else (where I've checked anyways) and you can't turn it on again in inputrc, you have to bind it in your .bashrc, all that because the bash developers think it would be too confusing to have it work the same in bash as anywhere else were you have readline support.comment 2y ago · link · parent
I usually do the same with commands where you are able to create sub-commands too, like git-,home (which allows you to run `git ,home add -p` and it conveniently set GIT_DIR to something and GIT_WORKTREE to $HOME). Sadly you can't do it with git aliases, I have to live with them starting with a dot (via '[alias ""]' as a section).
comment 2y ago · link · parent
[0]: https://docs.docker.com/reference/dockerfile/#shell-form
[1]: https://www.docker.com/blog/introduction-to-heredocs-in-dock...
[2]: https://docs.podman.io/en/latest/markdown/podman-build.1.htm...