Whenever I start a new session with iTerm, it sends sudo su
and PS1="[web stage | \d \t \w]:"
to the terminal window. I'm think this is something that someone set up for me in iTerm a long time ago. It's very irritating and I want it to stop. :-)
I looked all over the settings/prefs in iTerm and can't find any sign of what could be doing it, nor the string sudo su
or PS1=
anywhere. (And yes, Profiles > Command > Send Text at Start is empty-- that was my first thought but nothing there.)
I am 99% sure this is something from iTerm and not bash because when I launch the Terminal app, I don't get this behavior.
Where would this be stored and how can I stop it?
-- EDIT to add details:
It's not "Send Text at Start."
This is happening only in iTerm, not Terminal. Here's my iTerm Preferences/Profiles screen:
And, here's my ~/.bash_profile
file:
export EC2_HOME=~/.ec2
export PATH=$PATH:/bin:/usr/bin:EC2_HOME/bin:/usr/local/bin
export EC2_PRIVATE_KEY=pk-afv_db1.pem
export EC2_CERT=cert-afv_db1.pem
And my entire ~/.bashrc
file:
alias myip=ifconfig | grep 'inet ' | grep -v 127.0.0.1 |
cut -d\ -f2
export EDITOR="/usr/local/bin/mate -w"
export PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
~./bash_profile
and/or~/.bashrc
/etc/profile
? Can you post the contents of that file?