Created
May 5, 2015 21:58
-
-
Save nateflink/f3652012615117488c47 to your computer and use it in GitHub Desktop.
Bash Alias Made Easy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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