Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 17
    +1 for the stating explicitly all the subsets of {alias, script, function} at which this question does not aim. +1 for the childlike faith that it was OK for you to omit the null subset. Commented Aug 26, 2013 at 15:16
  • 2
    Although the question specifically asked about bash, note that older Bourne shells had 'alias' but not functions. This might make a difference if you're worried about compatibility. Commented Mar 4, 2016 at 5:53
  • 1
    If .bashrc really the best place, or at least a solid place, for this? There are so many ways to do the same thing in Linux, which I appreciate, however, all things being equal, I prefer to do things the most common way. Commented Jun 10, 2016 at 13:33