Skip to content

Instantly share code, notes, and snippets.

@lee-pai-long
Created January 29, 2016 17:12
Show Gist options
  • Save lee-pai-long/b0682e326a57acf7bea0 to your computer and use it in GitHub Desktop.
Save lee-pai-long/b0682e326a57acf7bea0 to your computer and use it in GitHub Desktop.

[BASH] Quickly add alias


$ alias my_alias='my_command'
$ echo "!!" >> ~/.bash_aliases

!! refer to the last command typed in bash history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment