Monday, 30 July 2018

macos - Mac OS X .bashrc not working


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?



Answer



In OSX, .bash_profile is used instead of .bashrc.


And yes, the .bash_profile file should be located in /Users/YourName/
(In other words, ~/.bash_profile)


For example, /Users/Aaron/.bash_profile


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...