3 ms·
Interestingly, I actually do. When I write bash scripts which will go to git and probably stay there for a while, I use long form of the switches, like --long-
by Const-me 3y ago
Interestingly, I actually do.
When I write bash scripts which will go to git and probably stay there for a while, I use long form of the switches, like --long-option-name instead of -lon. They make the script more readable when after a year someone wants to modify it.
- diarrhea 3y agoI use long options always, even going through the pain of typing them out when to tab completion is available. Exceptions are truly trivial things like ls. It allows things like history | fzf to work very well.
- mbwgh 3y agofzf comes with some bash completions (https://wiki.archlinux.org/title/fzf https://wiki.archlinux.org/title/fzf), including Ctrl+r for basically `history | fzf`.