01.10.2019
Posted by 

Aug 3, 2012. If you're in Terminal all the time, and you regularly type long commands, you can get back those precious moments of your life by creating aliases for those commands in your.bashprofile, which is a file in your Home directory that sets up and customizes your Terminal session.

Sep 6, 2012 - Learning to Use.profile to Set Up Aliases. If you've done anything other than surf social networks and watch movies on your Mac, you know.

Bash Aliases Mac Os X

Bash aliases for mac freeMacBash Aliases For Mac

Bash Aliases For Mac Download

Let's say you often browse to a directory that requires a lot of typing, such as: $ cd /Dropbox/projects/octopress/source/posts You can create a shortcut by adding the following line to.bashprofile: alias cdp='cd /Dropbox/projects/octopress/source/posts' Save the file, then either quit and relaunch Terminal, or refresh the changes by typing: $ source /.bashprofile From now on, to go to your Octopress posts directory, you can use this shortcut: $ cdp Another useful alias you can create is for opening files with your favorite text editor. In my case, it's Sublime Text 2, which already comes with an called subl, but I find that typing subl is awkward. I'd rather type slt, so I created the following alias: alias slt='open -a 'Sublime Text 2' This allows me to use the following command to open a file with Sublime Text 2: $ slt /.bashprofile I hope you found this tip useful, and if you have any bash tricks of your own, I'd love to hear about them.