Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment