Oi, espero descobrir por que estou recebendo esse erro.
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)
➜ ~
Meu .zshrc atual
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"
Eu criei um env virtual na minha pasta username/Projects/env, mas não tenho nenhum caminho definido para isso, tudo o que tenho é este alias:
# Virtual Environment
alias activate="source env/bin/activate"
Comentado export PATH="/usr/local/mysql"
e funciona novamente, esqueci $path
sudo apt-get install --reinstall coreutils
Se você criar funções personalizadas em .zshrc, NÃO CHAME variáveis com nomes de ambiente, como home
, path
, user
. Não diferencia maiúsculas de minúsculas.
Comentários muito úteis
Comentado
export PATH="/usr/local/mysql"
e funciona novamente, esqueci $path