Next we'll set up the customise the default OSX Terminal app, normally refered t =o as bash
.
By default, OSX Yosemite comes with some very useful keyboard shortcuts:
crtl + a
ctrl + e
alt + right/left arrow
A very useful feature you can add to you Terminal is the ability to autocomplete the command from the command history. In order to do this, you must modify the ~/.bash_profile file.
subl ~/.bash_profile
# make bash autocomplete with up arrow/down arrow
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
up arrow
and you'll search through the commands you alrady used.Reference: https://lcoppa.wordpress.com/2011/05/01/autocomplete-command-line-from-history-in-os-x-terminal/
When working at a project that uses git for version control, it is very useful to know the current branch you're working on and weather or not you the latest changes are committed.
In order to display this information, we'll modify the ~/.bash_profile
file:
subl ~/.bash_profile
cmd + ,
) > Profiles > Settings > Import and choose the .terminal file downloaded.Total Terminal is a Terminal add on which adds the ability to ...
Set specific Terminal tabs for every project.