Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I get rid of something running on every new terminal session?
    text
    copied!<p>I am using Lion. I have an error that outputs on every new terminal session:</p> <pre><code>-bash: __rvm_add_to_path: command not found </code></pre> <p>It's an almost brand new user account.. RVM is installed on the other account on the machine.. ~/.bashrc &amp; ~/.bash_profile are both blank.. the out put of env is:</p> <pre><code>TERM_PROGRAM=Apple_Terminal SHELL=/bin/bash TERM=xterm-256color TMPDIR=/var/folders/ry/8zsyknmx7dj4_2zzvn1n71500000gn/T/ Apple_PubSub_Socket_Render=/tmp/launch-jsfKPw/Render TERM_PROGRAM_VERSION=303 TERM_SESSION_ID=3EBC0F1A-9867-41E5-8873-75E84B9F712F USER=incorvia COMMAND_MODE=unix2003 SSH_AUTH_SOCK=/tmp/launch-ZQqgPj/Listeners Apple_Ubiquity_Message=/tmp/launch-u3d1lp/Apple_Ubiquity_Message __CF_USER_TEXT_ENCODING=0x1F5:0:0 PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin PWD=/bin LANG=en_US.UTF-8 HOME=/Users/incorvia SHLVL=1 LOGNAME=incorvia DISPLAY=/tmp/launch-0B0I8s/org.x:0 _=/usr/bin/env </code></pre> <p>I see nothing related to RVM here.. where else can I look? </p> <p>=====</p> <h1>/etc/bashrc</h1> <pre><code># System-wide .bashrc file for interactive bash(1) shells. if [ -z "$PS1" ]; then return fi PS1='\h:\W \u\$ ' # Make bash check its window size after a process completes shopt -s checkwinsize # Tell the terminal about the working directory at each prompt. if [ "$TERM_PROGRAM" == "Apple_Terminal" ] &amp;&amp; [ -z "$INSIDE_EMACS" ]; then update_terminal_cwd() { # Identify the directory using a "file:" scheme URL, # including the host name to disambiguate local vs. # remote connections. Percent-escape spaces. local SEARCH=' ' local REPLACE='%20' local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}" printf '\e]7;%s\a' "$PWD_URL" } PROMPT_COMMAND="update_terminal_cwd; $PROMPT_COMMAND" fi </code></pre> <p>=========</p> <p>Fixed...</p> <p>In the bottom of my /etc/profile it was sourcing /etc/profile.d/rvm.sh</p> <p>Don't know how that got there...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload