Skip to content

Instantly share code, notes, and snippets.

@CharlieEtienne
Last active October 13, 2018 10:14
Show Gist options
  • Save CharlieEtienne/eca0ce2a22168e66e583a186aaebfdef to your computer and use it in GitHub Desktop.
Save CharlieEtienne/eca0ce2a22168e66e583a186aaebfdef to your computer and use it in GitHub Desktop.
File ".bash_profile" located in "/home/username/"
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# Replace "username" by your username
ME="username"
alias composer="php ~/composer.phar"
alias cdme="cd /home/${ME}"
alias cddev="cd /home/${ME}/www/dev"
alias cdprod="cd /home/${ME}/www/prod"
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME=""
export USERNAME BASH_ENV PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment