To the best of my knowledge, since .bashrc is in your home directory and the source command is used without an absolute path (i.e. source .aliases), it would expect the .aliases file to be in the home directory. Note that the .bashrc file runs every time you open a new terminal instance.

That being said, I haven’t really tried not having my .aliases and .functions in my home directory, so I’m not sure. If you try this out, lemme know!

--

Full-stack JavaScript developer and coding enthusiast. I love learning new technologies and sharing my knowledge. Find me on ajmalsiddiqui.me

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mohammed Ajmal Siddiqui

Mohammed Ajmal Siddiqui

Full-stack JavaScript developer and coding enthusiast. I love learning new technologies and sharing my knowledge. Find me on ajmalsiddiqui.me