5 ms·
Shell aliases are your friend. just give them some memorable names, and add them to your .bashrc. Or, if they are very context sensitive (that's not great), th
by marcosdumay 6y ago
Shell aliases are your friend.
just give them some memorable names, and add them to your .bashrc. Or, if they are very context sensitive (that's not great), there is a way to source a file every time you enter a directory, I just don't remember it.
- chubot 6y agoShell functions do the same thing as aliases, and have fewer parsing problems, and they have more flexible arguments. Instead of: alias ls='ls --color' Better: ls() { command ls --color "$@" } (The "command" prefix avoids recursion)
- deleted 6y ago[deleted]