Skip to content

Instantly share code, notes, and snippets.

@nateflink
Created May 5, 2015 21:58
Show Gist options
  • Save nateflink/f3652012615117488c47 to your computer and use it in GitHub Desktop.
Save nateflink/f3652012615117488c47 to your computer and use it in GitHub Desktop.
Bash Alias Made Easy
#alias to reload the bash profile after adding an alias
alias sourcebash="source ~/.bash_profile"
#alias to quickly add an alias to the bash profile
alias aliasappend=aliasappendfunction
aliasappendfunction() {
echo 'alias '$1'="'$2'"' >> ~/.bash_profile;
sourcebash
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment