Skip to main content
added 34 characters in body; edited title
Source Link
Eric
  • 420
  • 1
  • 9
  • 21

My iTerm spits out text every time I start a new session - why, and how to stop it?

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:

enter image description here

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

My iTerm spits out text every time I start a new session - why, and how to stop it?

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:

This is happening only in iTerm, not Terminal. Here's my iTerm Preferences/Profiles screen:

enter image description here

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

iTerm spits out text every time I start a new session - why, and how to stop it?

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:

enter image description here

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
added 690 characters in body
Source Link
Eric
  • 420
  • 1
  • 9
  • 21

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:

This is happening only in iTerm, not Terminal. Here's my iTerm Preferences/Profiles screen:

enter image description here

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

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?

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:

This is happening only in iTerm, not Terminal. Here's my iTerm Preferences/Profiles screen:

enter image description here

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
Source Link
Eric
  • 420
  • 1
  • 9
  • 21

My iTerm spits out text every time I start a new session - why, and how to stop it?

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?