Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.
declare -x Apple_PubSub_Socket_Render="/tmp/launch-qoybJQ/Render"
declare -x Apple_Ubiquity_Message="/tmp/launch-DWchNf/Apple_Ubiquity_Message"
declare -x COMMAND_MODE="unix2003"
declare -x DISPLAY="/tmp/launch-zF43Un/org.x:0"
[...]
declare -x TMPDIR="/var/folders/43/z74xnym15tg55c3kyl0c05340000gn/T/"
declare -x USER="reshad"
declare -x __CF_USER_TEXT_ENCODING="0x1F5:0:0"

These messages appear in Terminal, how can I get rid of them?


Here's my whole bash_profile:

export PATH=/opt/local/bin:/opt/local/sbin:/usr/sbin:/usr/local/mongodb-osx-x86_64-2.0.2/bin:$PATH

# Aliases
alias apache="sudo apachectl restart"
alias httpd.conf="mate /etc/apache2/httpd.conf"
alias php.ini="mate /etc/php.ini"
alias bash_profile="mate ~/.bash_profile"
alias reload="source ~/.bash_profile"
alias vhosts.conf="mate /etc/apache2/extra/httpd-vhosts.conf"
alias vhost="mate /etc/apache2/vhost"
alias hosts="mate /etc/hosts"
alias php.ini="mate /etc/php.ini"
alias mysql="/usr/local/mysql/bin/mysql"
alias mysqladmin="/usr/local/mysql/bin/mysqladmin"
alias cms="cd ~/Sites/cms"
alias webapps="cd ~/Sites/webapps"
alias zf="/Library/PHP/Zend/bin/zf.sh"
alias mysqld="mysql -uroot -p"
alias reload= "source .bash_profile"

# Git
alias gst="git status"
alias gl="git pull"
alias gp="git push"
alias gd="git diff | mate"
alias gc="git commit -v"
alias gca="git commit -v -a"
alias gb="git branch"
alias gba="git branch -a"

# SublimeText
export SUBLIME_HOME="/Applications/Sublime Text 2.app"
export PATH="$PATH:$SUBLIME_HOME/Contents/SharedSupport/bin"

# MySQL
export PATH="$PATH:/usr/local/mysql-5.5.20-osx10.6-x86_64/bin"
source ~/.git-completion.bash
share|improve this question
    
Do they appear in each new tab you create in Terminal? Do you have installed any software (or done any other changes) lately? –  patrix Nov 21 '12 at 22:35
    
Yes it does, it appears in every new tab. Lately I installed ipython, ipython notebook and created a virtual machine deleting the existing one. –  reshad Nov 22 '12 at 5:11
    
Well, one of the installs messed up your .bashrc/.alias/.profile –  patrix Nov 22 '12 at 6:18
    
Heres what I have in my bash profile: –  reshad Nov 22 '12 at 8:07
    
Heres what I have in my bash profile: export PATH=/opt/local/bin:/opt/local/sbin:/usr/sbin:/usr/local/mongodb-osx-x86_64-2.0.‌​2/bin:$PATH # SublimeText export SUBLIME_HOME="/Applications/Sublime Text 2.app" export PATH=$PATH:$SUBLIME_HOME/Contents/SharedSupport/bin # MySQL export PATH=$PATH:/usr/local/mysql-5.5.20-osx10.6-x86_64/bin #source ~/.git-completion.bash –  reshad Nov 22 '12 at 8:12
show 12 more comments

1 Answer 1

There are many different Bash script files that get executed before and after your .bash_profile file is executed. This Bash Reference Manual page explains all the various Bash script files that get executed upon starting up a Bash shell.

p.s. Keep in mind that any one of those files could include commands to load/execute yet another file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.