Salut en espérant comprendre pourquoi j'obtiens cette erreur.
Last login: Sun Sep 13 20:15:26 on console
/Users/leongaban/.oh-my-zsh/oh-my-zsh.sh:3: command not found: env
/Users/leongaban/.oh-my-zsh/lib/theme-and-appearance.zsh:9: command not found: uname
/Users/leongaban/.oh-my-zsh/lib/theme-and-appearance.zsh:13: command not found: uname
➜ ~ zsh --version
zsh 5.0.2 (x86_64-apple-darwin13.0)
➜ ~
Mon .zshrc actuel
export ZSH=/Users/leongaban/.oh-my-zsh
export TERM="xterm-256color"
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/Users/leongaban/bin/subl"
export PATH="/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH"
export PATH="/usr/local/mysql"
export EDITOR='subl -w'
source $HOME/.bash_profile
source $ZSH/oh-my-zsh.sh
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
J'ai créé un env virtuel dans mon dossier nom d'utilisateur/Projets/env, mais je n'ai aucun chemin défini pour cela, tout ce que j'ai est cet alias :
# Virtual Environment
alias activate="source env/bin/activate"
Commenté export PATH="/usr/local/mysql"
et ça marche à nouveau, j'ai oublié $path
sudo apt-get install --reinstall coreutils
Si vous créez des fonctions personnalisées dans .zshrc, N'APPELEZ PAS de variables avec des noms d'environnement, tels que home
, path
, user
. Il est insensible à la casse.
Commentaire le plus utile
Commenté
export PATH="/usr/local/mysql"
et ça marche à nouveau, j'ai oublié $path