Ohmyzsh: Error: command not found: env

Created on 14 Sep 2015  ·  3Comments  ·  Source: ohmyzsh/ohmyzsh

Hi hoping to figure out why I'm getting this 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)
➜  ~

My current .zshrc

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"

I did create a virtual env in my username/Projects/env folder, but I don't have any path set to that, all I have is this alias:

# Virtual Environment
alias activate="source env/bin/activate"

Most helpful comment

Commented out export PATH="/usr/local/mysql" and it works again, forgot $path

All 3 comments

Commented out export PATH="/usr/local/mysql" and it works again, forgot $path

sudo apt-get install --reinstall coreutils

If you create custom functions in .zshrc, DO NOT CALL variables with environment names, such as home, path, user. It's case-insensitive.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mukteshkrmishra picture mukteshkrmishra  ·  3Comments

faxotherapy picture faxotherapy  ·  3Comments

dogrizz picture dogrizz  ·  3Comments

oskargicast picture oskargicast  ·  3Comments

nimmoadam picture nimmoadam  ·  3Comments