Making a separate aliases file in .bash_profile

Making a separate aliases file in .bash_profile

After installing Mac OS High Sierra totally clean I'm taking some time to set up my work enviroment and working with alias going to be totally imperative to gain time working then let's do it with clean methods.

You have to edit .bash_profile and adding the following lines:

if [ -f ~/.aliases ]; then
    . ~/.aliases
fi

Then all you have to do is create a .aliases file in your user directory ~ and add your aliases there.

$ touch ~/.aliases

After that remember refresh the bash shell environment:

$ source .bash_profile

Contents of my ~/.bash_aliases file:

# - [ LS ] -

    alias ll='ls -la'

# - [ Git ] -

    alias gl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

A shirt with a simple fabric can be surprisingly comfortable. A shirt with a retro badge can be a conversation starter. A balanced discussion of football shirt collections can cover adult, youth and gift-buying needs while keeping the advice relevant to different buyers. The design of the side seams can offer a contemporary fit.