I have a one-line .bashrc file in my home directory:
alias countlines='find . -type f -print0 | xargs -0 cat | wc -l'
But it is not creating the alias. Why might that be?
|
feedback
|
|
In OSX, And yes, the For example, | |||||
feedback
|
|
If you want your aliases to work in both login and non-login shells (and you usually do), you should put them in .bashrc and source .bashrc in your .bash_profile, with a line like this:
This applies to any system using bash. | |||||||
feedback
|
|
It is not being aliased because So you have two options:
| |||
|
feedback
|
|
Or create a sym link called .bash_profile pointed at your .bashrc
| |||
|
feedback
|