![.bashrc .bashrc](/uploads/1/2/5/4/125446383/574051206.jpg)
Create the.bash_profile file using the command line program called ‘nano’ if it doesn’t exist: When the file is created you are ready to enter your alias commands. In nano ‘control+o’ to write the file out and ‘control+x’ to exit the file. Refresh the bash shell environment: That’s it, now the alias will take effect. What useful things can one add to one's.bashrc? I use my bashrc on numerous machines, so i've got this little snippet to make sure LS is colourized. This will fix it on OSX machines, maybe even *BSD if you adjust the uname line. Some useful ones for Mac OS X.
![File File](http://cdn.osxdaily.com/wp-content/uploads/2013/02/better-terminal-ui.jpg)
To make aliases of macOS Unix commands in your bash shell on macOS and earlier versions, it is done via your.bashprofile file which lives in your home account directory, if the file does not already exist, just create one. Launch Terminal from the /Application/Utilities folder Go to your home directory by just entering cd followed by the ‘return’ key to enter the command: cd List your home directory contents including invisible files to see if the file already exists, use: ls -la drwxr-xr-x+ 18 ladmin staff 612 Jul 14 09:21. Drwxr-xr-x 6 root admin 204 Jul 3 18:28.