Hola, con la esperanza de averiguar por qué estoy recibiendo este error.
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)
➜ ~
Mi .zshrc actual
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"
Creé un entorno virtual en mi carpeta de nombre de usuario/Proyectos/env, pero no tengo ninguna ruta configurada para eso, todo lo que tengo es este alias:
# Virtual Environment
alias activate="source env/bin/activate"
Comentó export PATH="/usr/local/mysql"
y funciona de nuevo, olvidé $path
sudo apt-get install --reinstall coreutils
Si crea funciones personalizadas en .zshrc, NO LLAME a variables con nombres de entorno, como home
, path
, user
. No distingue entre mayúsculas y minúsculas.
Comentario más útil
Comentó
export PATH="/usr/local/mysql"
y funciona de nuevo, olvidé $path