3 ms·
^R is probably my second favorite command, I prefer FiSH style (and use https://github.com/zsh-users/zsh-history-substring-search https://github.com/zsh-users/z
by Spittie 12y ago
^R is probably my second favorite command, I prefer FiSH style (and use https://github.com/zsh-users/zsh-history-substring-search https://github.com/zsh-users/zsh-history-substring-search with ZSH), but since this isn't on every server I have access, it's a nice trick to remember.
My favorite one (I digress) is that you can use ^[something]^[something else] to replace [something] with [something else] in the last command. Great for typos, or for repeated commands with few different arguments.
~ ping google.com
~ ^google^news.ycombinator
~ ping news.ycombinator.com