3 ms·
Fish's abbr feature does this. They're aliases that expand in place. For example I have gph abbr'd to "git push origin HEAD", and I can continue editing the com
by akx 8y ago
Fish's abbr feature does this. They're aliases that expand in place. For example I have gph abbr'd to "git push origin HEAD", and I can continue editing the command after expansion.
- pbhjpbhj 8y agoIs there a way to expand special commands (and optionally aliases) in BASH without executing them. Like if I put `ll !$` it would show, say, `ls -al /home/user/downloads` on a new line. I'd love tab style completion that offered explicit history as well as standard completions. So if I `find` and then press the completion key-combo I get a list of the last 10 unique find commands (and I can choose one and edit before running).
- 0x445442 8y agoThis may be possible with fzf but I'm not sure of all the features it's capable of. This type of behavior would be a great addition to the terminal or popular shells. Instead of having the command prompt always display at the end of output, have it stay in the same place at the top or bottom. Something like you get with the Emacs mini-buffer with tools like helm but for the terminal.