Skip to content

Instantly share code, notes, and snippets.

@xr09
Created August 4, 2014 13:56
Show Gist options
  • Save xr09/912044868b954685de2b to your computer and use it in GitHub Desktop.
Save xr09/912044868b954685de2b to your computer and use it in GitHub Desktop.
mkalias on-the-fly
# mkalias name "command param1 param2 etc.."
# Example: mkalias srvfolder "python -m SimpleHTTPServer"
mkalias () {
echo "alias $1=\"$2\"" >> ~/.bashrc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment