Chaque fois que j'ouvre iTerm (+zsh), je vois cette erreur. Je suis confronté à ce problème depuis longtemps maintenant et je n'arrive pas à trouver la cause première pour le résoudre complètement.
/Users/Nirmal/.oh-my-zsh/oh-my-zsh.sh:3: command not found: env
env_default:1: command not found: env
env_default:1: command not found: grep
env_default:1: command not found: env
env_default:1: command not found: grep
compdump:136: command not found: mv
/usr/local/Bluemix/bx/zsh_autocomplete:7: command not found: dirname
/usr/local/Bluemix/bx/zsh_autocomplete:source:8: no such file or directory: /bash_autocomplete
prompt_status:10: command not found: wc
context:1: command not found: whoami
Après avoir ouvert mon terminal, j'exporte bin.
$ export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
preexec:1: command not found: date
mais il montre à nouveau une commande introuvable.
Quelqu'un peut-il aider à résoudre ce problème?
Fondamentalement, lorsque j'ouvre le terminal, je devrais pouvoir continuer à travailler sans exporter de chemin.
Merci
Vous avez probablement une mauvaise définition de $PATH
dans votre fichier zshrc. Quels sont les contenus ?
Je l'ai corrigé assez rapidement après avoir commenté en ajoutant ceci près du haut de mon
.zshrc
export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
Merçi pour la confirmation.
Commentaire le plus utile
Je l'ai corrigé assez rapidement après avoir commenté en ajoutant ceci près du haut de mon
.zshrc