Created
December 9, 2015 18:55
-
-
Save alibo/22a57e83f7937354f5d4 to your computer and use it in GitHub Desktop.
A simple bash function for making an alias of current directory
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
make_alias () | |
{ | |
echo "alias $1=\"cd `pwd`\"" >> ~/.bash_profile | |
source ~/.bash_profile | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment