How to create terminal aliases
What is an Alias
Aliases are nothing more than keyboard shortcuts or abbreviations, and although they’re a bit limited, they’re great for simple commands.
Alias Structure
-
alias
-
shortcut name
-
=
-
‘your_command’
How to Create a Permanent Alias in the Text Editor (Sublime)
Open a terminal of your choice and insert this command which will open the bash profile in Sublime Editor: subl ~/.bash_profile
Alias Examples
1
2
3
4
5
6
7
8
9
alias c=’clear’
alias gp=’git pull’
alias gs=’git status’
Save Changes
Once you have created the alias(es), restart the terminaln to save/apply these changes