About Solving Unresolved Commands in Zsh or Bash Scripts
If you use BashSupport Pro plugin with PyCharm and some of commands (like mkdir
, date
, ansible-playbook
, npm
, etc.) are not recognized, you need to make sure that the PATH
environment variable has those values and is set by the script.
One of the ways of doing that is to set the PATH
variable in ~/.zshrc
or ~/.bashrc
file as one of the first directives:
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
Then source that file to your script that you run through the BashSupport Pro plugin:
#!/usr/bin/env zsh
source ~/.zshrc
# other directives
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You