zsh command not found skm
Problem
When trying to use skm
in the terminal, you may encounter the error zsh: command not found: skm
, indicating that the .splashkit
directory is not included in your PATH.
Solution
To resolve this, add the .splashkit
folder to your .zshrc
file. Follow the steps below:
-
Locate Your
.zshrc
FileThe
.zshrc
file is located in your home directory at~/Users/(your username)/
.If you don’t see it, press Shift + Command + . (dot) to toggle hidden files visibility in Finder.
-
Identify Your Username (Optional)
To ensure you’re in the correct directory, you can use the
whoami
command in Terminal to check your username: -
Add SplashKit to PATH
Open the
.zshrc
file with a text editor and add the following line at the end to include the SplashKit path: -
Optional: Add .NET Path to PATH
For .NET compatibility, add this line to your
.zshrc
file as well: -
Optional: Enable VS Code from Terminal
To enable the
code .
command for opening Visual Studio Code from the terminal, add the following line: -
Apply Changes
Save the
.zshrc
file and then reload it with the following command to apply changes immediately:
After completing these steps, your terminal should recognize the skm
command, and you should be able to use SplashKit as expected.