Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permanently storing zsh aliases [closed]

I created a new alias by typing:

~ alias gpo='git push origin'

I see my newly created alias when I type alias (which lists all the available aliases) but when I close my terminal and reopen it, they vanish.

  • How do I ensure that it is permanently available?
  • How do I keep a backup of all my aliases so I can carry them with me even if I move between computers?
like image 664
JackH Avatar asked Nov 09 '15 17:11

JackH


1 Answers

You can keep it inside ~/.zshrc

like image 66
Aleks Avatar answered Sep 28 '22 08:09

Aleks