Hacker News new | ask | show | jobs
by selljamhere 1073 days ago
For anyone new to aliases, you can add them with:

  alias my_alias="command"
Add it to your ~/.bash_profile or ~/.zprofile so it's ready whenever you are. Check out this page for more info: https://linuxize.com/post/how-to-create-bash-aliases/
2 comments

    [alias]
      br = branch
      co = checkout
      d = diff
      dc = diff --cached
      ec = config --global -e
      latest = log -1 HEAD
      please = push --force-with-lease
      st = status
Aliases for git can be added to ~/.gitconfig
Okay, but this is about git aliases. Quite similar.