Skip to content

Instantly share code, notes, and snippets.

@alefhsousa
Last active April 2, 2021 21:11
Show Gist options
  • Select an option

  • Save alefhsousa/bb41a9ec3f23ce8b8d8065eda3f50ff2 to your computer and use it in GitHub Desktop.

Select an option

Save alefhsousa/bb41a9ec3f23ce8b8d8065eda3f50ff2 to your computer and use it in GitHub Desktop.
example bash profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
source $HOME/.nvm/nvm.sh
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk.x86_64
MVN_HOME=/opt/apache-maven
PATH=$MVN_HOME/bin:$PATH:$HOME/.local/bin:$HOME/bin
sudo service mysqld start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment