declare -x messages appear in my terminal. How can I get rid of it?

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

Solution 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.