Ohmyzsh: Ouvrir iTerm avec zsh est toujours un problème !

Créé le 2 nov. 2017  ·  3Commentaires  ·  Source: ohmyzsh/ohmyzsh

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

Commentaire le plus utile

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"

Tous les 3 commentaires

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.

Cette page vous a été utile?
0 / 5 - 0 notes

Questions connexes

Cabbagec picture Cabbagec  ·  3Commentaires

sohocoke picture sohocoke  ·  3Commentaires

dogrizz picture dogrizz  ·  3Commentaires

jaredmoody picture jaredmoody  ·  3Commentaires

oskargicast picture oskargicast  ·  3Commentaires