bash: __vte_prompt_command: command not found

asked 2014-03-09 06:42:39 -0500

CEP gravatar image

updated 2014-03-09 17:26:55 -0500

mether gravatar image
bash: __vte_prompt_command: command not found

Whenever I open a terminal, I am greeted with this line. Also, this is printed each time I enter a command in the terminal.

I am a linux-noob, and would be happy to read up, if someone can point me to some resource, or hint at a possible solution. I tried google-ing, but was unable to turn up with any useful results.

I did not do anything specific just before this started popping up.

Thanks in advance :)

Additional Info:

  • The terminal I used is the default gnome-terminal

  • Fedora 20

edit retag flag offensive close merge delete

Comments

1

__vte_prompt_command is defined in /etc/profile.d/vte.sh as part of the PROMPT_COMMAND shell variable in gnome-terminal. What's the output of:

echo $PROMPT_COMMAND
rpm -qfV /etc/profile.d/vte.sh

the second command should verify the vte3 package (which installs /etc/profile.d/vte.sh).

Ahmad Samir gravatar imageAhmad Samir ( 2014-03-09 07:31:46 -0500 )edit

@Ahmad Samir: Thanks for trying to help :) I restarted the system, and this solved the problem. I will try to reproduce the problem, and will post if I succeed.

CEP gravatar imageCEP ( 2014-03-09 09:25:07 -0500 )edit
1

I was able to reproduce the initial error by manually removing the "/etc/profile.d/vte.sh" file. So I guess it is possible to reproduce that error also by removing the package that owns that file, "vte" likely on Fedora 20 (in my case it was "vte3" on RHEL 7). This is because gnome-terminal doesn't seem to really start a new session when opening a new terminal window or tab. Basically $PROMPT_COMMAND is still filled with "__vte_prompt_command" which is defined in "/etc/profile.d/vte.sh" which no longer exists (for whatever reason) and thus results in the error you mentioned.

rsc gravatar imagersc ( 2014-10-21 10:37:02 -0500 )edit