Replies: 1 comment 4 replies
-
Very interesting: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(Apologies if Patrick covers this later in the course, I'm only in Lesson 6)
It might become tiresome to repeatedly type
yarn hardhat some-other-command
all the time, even while using the terminal's history.You can set an alias in your
.bashrc
file (usually in the root of your user home directory) like so:alias yarnhat='yarn hardhat'
It doesn't have to be 'yarnhat,' but you'll want to choose a name that's easy to remember and that tells you what you're doing.
Default
.bashrc
files will have some aliases built in, so just make a new line and add your alias.Now, you can
yarnhat compile
and save a few keystrokes. 👋EDIT: Forgot to add, you'll need to re-open your terminal for the change to take effect. (Or type
. .bashrc
inside your home directory)Beta Was this translation helpful? Give feedback.
All reactions