(MacOS Mojave Example)
Go to your home directory:
$ cd $HOME
Then openOpen the hidden .bash_profile
.bash_profilefile in the viVim editor:$ vim .bash_profile
vim ~/.bash_profileJump to the last character of the file by pressing capital GG and then $$.
Press Io to be ableadd a new line to insert text in the vi editorfile.
insertInsert your new alias like:
$ alias ll='ls -lG'
alias ll='ls -lG'press control + cPress Esc to quitexit insert mode of viVim.
typeType following to write and quite your new changes:
$ and exit the editor:wq
restart your terminal
:wqreopenReopen terminal and you should be able to use the alias ll
ll