Adding program shortcut to user profile (.bash_profile)

To get some background read an aritcle about .bash_profile vs .bashrc by Josh Staiger.

Following example will create an alias for pycharm.sh to be run using pchm.

# cd ~
# vi .bash_profile

Add alias pchm=’cd /home/muneel/Downloads/pycharm-community-2016.3.1/bin;./pycharm.sh’ to the end of file.

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/home/muneel/Downloads/pycharm-community-2016.3.1/bin

export PATH

alias pchm='cd /home/muneel/Downloads/pycharm-community-2016.3.1/bin;./pycharm.sh'
# bash .bash_profile
# pchm