Don’t lose your aliases again when switching computers!
Welcome to issue #9 of One Minute Better Developer, where you become a more successful software developer by reading short nuggets of knowledge, one minute at a time.
Art by my buddy Loor Nicolas
You get a new computer, you back up all your files but…
OH! you forgot to back up your
~/.zshrc where all your custom aliases and functions live! Now you need to start over with them…
To save you this headache, I’m sharing my super-useful custom alias for updating my shell config that does the following:
Let’s set it up.
_This tutorial assumes you’re using _ zsh . If your are using bash , just replace
_.bashrc_in the next commands. You can find out which shell you’re using by running
Creating a secret Gist.
#github #unix #command-line #github-gist #tips-and-tricks