In the Unix shell variables are temporary.
If you close your terminal and log back in, you will find that any changes to PATH and any aliases you created have gone. You will need to set them all up again if you want them to work.
However, if you put them in a login script, they’ll be setup every time you login.
Remember those hidden files in your home directory? Some of them are actually pretty useful.
Both of these are already set up for you on Legion, but you can improve them as you like.