Skip to content

Instantly share code, notes, and snippets.

@alibo
Created December 9, 2015 18:55
Show Gist options
  • Save alibo/22a57e83f7937354f5d4 to your computer and use it in GitHub Desktop.
Save alibo/22a57e83f7937354f5d4 to your computer and use it in GitHub Desktop.
A simple bash function for making an alias of current directory
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