Adding Yod to the PATH - yodlang/yod GitHub Wiki
Microsoft Windows systems
- Right-click on the Start button and select “System”
- Click on “Advanced system settings” on the right side
- Click on the “Environment Variables” button
- Under “System variables”, find and select the “Path” variable, then click “Edit”
- Click “New” and add the full path to the folder containing the Yod executable
- Click “OK” to close each window
- Restart any open command prompt windows to apply the changes
Unix-like systems
-
Open a terminal
-
Determine which shell you’re using by running
echo $SHELL
-
Edit the appropriate configuration file and add the following line, replacing
/path/to/yod/executable/directory
with the actual path:For Bash (
~/.bash_profile
or~/.bashrc
):export PATH="$PATH:/path/to/yod/executable/directory"
For Zsh (
~/.zshrc
):path+=('/path/to/yod/executable/directory') export PATH
For Fish (
~/.config/fish/config.fish
):set -U fish_user_paths /path/to/yod/executable/directory $fish_user_paths
-
Save the file and exit the editor
-
Restart your terminal, or run:
source ~/.bash_profile source ~/.zshrc source ~/.config/fish/config.fish
[!NOTE] If you’re using a different shell, consult its documentation for the correct configuration file and method to update the PATH.
After following these steps, you should be able to run the yod
command from any directory in your terminal or command prompt.