2016-04-23 4 views
1

Ich bekomme zusätzliche Ausgabe auf der Kommandozeile, wenn ich Verzeichnisse im Terminal ändere. Die Ausgabe ist:Die Verwendung von 'cd' im Terminal druckt Syntaxfehler

Casey-MacBook-Pro:~ casey$ cd Envs 
-bash: command substitution: line 9: syntax error near unexpected token `done' 
-bash: command substitution: line 9: ` done' 
Caseys-MacBook-Pro:Envs casey$ 

Irgendeine Idee auf, was verursacht dieses? Könnte es etwas in meinem Bash Profil sein? Dies ist, was mein bash Profil aussieht, wenn ich subl ~/.bash_profile laufen:

# MacPorts Installer addition on 2013-03-02_at_20:37:40: adding an appropriate PATH variable for use with MacPorts. 
export PATH=/opt/local/bin:/opt/local/sbin:$PATH 
# Finished adapting your PATH environment variable for use with MacPorts. 

# Setting PATH for Python 2.7 
# The orginal version is saved in .bash_profile.pysave 
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" 
export PATH 

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* 

# Setting PATH for Python 3.4 
# The orginal version is saved in .bash_profile.pysave 
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}" 
export PATH 

export WORKON_HOME=$HOME/.virtualenvs 
source /usr/local/bin/virtualenvwrapper.sh 
source /usr/local/bin/activate.sh 

# MacPorts Installer addition on 2015-09-24_at_12:31:24: adding an appropriate PATH variable for use with MacPorts. 
export PATH="/opt/local/bin:/opt/local/sbin:$PATH" 
# Finished adapting your PATH environment variable for use with MacPorts. 

export STORMPATH_API_KEY_ID="" 
export STORMPATH_API_KEY_SECRET="" 
export SENDGRID_API_KEY="" 
export SECRET_KEY="" 
export FLASK_CONFIG="" 
export DEV_DATABASE_URL="" 
export TEST_DATABASE_URL="" 

# Setting PATH for Python 2.7 
# The orginal version is saved in .bash_profile.pysave 
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" 
export PATH 

# Setting PATH for Python 3.5 
# The orginal version is saved in .bash_profile.pysave 
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}" 
export PATH 
+0

Was zeigt 'type cd'? – Siguza

+0

Es zeigt dies: cd ist eine Funktion cd() { autoenv_cd "$ @" } – Casey

+0

Ist eine der Dateien '~/ENVS/.env' oder' ~/.env' existieren? Wenn ja, könnten Sie ihren Inhalt der Frage hinzufügen? – Siguza

Antwort

1

wie das Problem Sounds ist, dass virtualenvwrapper.shcd in etwas gebrochen ist, neu zu definieren.

Versuchen Sie, diese aus ~/.bash_profile zu kommentieren und ein neues Terminalfenster zu öffnen.

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 
source /usr/local/bin/virtualenvwrapper.sh 
source /usr/local/bin/activate.sh 
Verwandte Themen