OSX TERMINAL SHORTCUT BEGINNING OF LINE INSTALL
This will install auto completion tools for git from your command line. Assuming you’re using Homebrew to install packages (and if you’re not, you should be), you first need to run brew install git bash-completion. The most useful is going to be GitHub integration. How often do you need to know your computer name? And how useful is just knowing your current directory, but not any of the parent directories? The good news is, this can be modified very easily. The default terminal prompt in OSX is : $. Some basic tips and tricks for the Terminal include changing the command line to present more detailed info about your current environment, adding in aliases to common or complex commands to save time, and then learning some bash scripting to write functions to handle actions that are too complex to be handled by simple aliases.Īll of these changes will be occurring in your ~/.bash_profile, ~/.bashrc, or whatever you have set up as your terminal config file.
If you truly understand what you can do in Terminal, then you will know if you need more advanced packages or shell environments. There are useful community-driven sites and packages to automate a lot of this (for example: Bash-It, which copies over a lot from the popular ZSH framework, Oh-My-Zsh), but I always think it’s good, at least at first, to learn some basics yourself.
The first thing any new developer should do is set up their bash profile with tons of awesome shortcuts and tricks to make working in Terminal faster and easier.