-
Notifications
You must be signed in to change notification settings - Fork 4
Changing the PATH
Daniel Thaagaard Andreasen edited this page Apr 6, 2015
·
7 revisions
I recommend adding the folder to your PATH
vairable. This way you will be able to use the scripts anywhere. To do this depends on your shell.
Common for all (I think) is that you need to edit the rc file, e.g. bashrc
(this is the standard for most cases).
Shell | Adding to rc file |
---|---|
bash | PATH=$PATH:path/to/astro_scripts |
zsh | PATH=$PATH:path/to/astro_scripts |
If you also want to import functions from the scripts you can add the PATH to your PYTHONPATH
variable (also in the rc-file)
PYTHONPATH=path/to/astro_scripts:$PYTHONPATH
Now you can use the scripts anywhere.