Re:Ask HN: Do you use the bash alias feature much?
by dredmorbius on Sunday May 29, 2022 @01:30PM
(#31550933)
Somewhat less with time, as bash functions are preferred and more powerful handle arguments, multi-step processing, logic).
But yes, for basic arguments, particularly for ls:
alias ls='ls -F'
alias la='ls -A'
alias ll='ls -l'
Occasionally for other commands for which the default is not ideal. w3m, for example, will read the bookmarks file if URL is passed, with '-B', but otherwise exits with an error, which is annoying.
But yes, for basic arguments, particularly for ls:
Occasionally for other commands for which the default is not ideal. w3m, for example, will read the bookmarks file if URL is passed, with '-B', but otherwise exits with an error, which is annoying. Git commands, as others note.