Last active
December 11, 2015 07:38
-
-
Save quicksnap/4567602 to your computer and use it in GitHub Desktop.
Usage: `newalias ALIAS_NAME "alias commad"
Example: # newalias fuckyou "echo 'No, fuck you.' "
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
newalias() { | |
echo "\n" >> ~/.aliases | |
echo "alias $1=\"$2\"" >> ~/.aliases | |
. ~/.aliases | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment