Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I think this is the relevant bit of my ~/.bashrc file:

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

(I forget where I got this from so I sadly can't credit the source.) This is the only appearance of the line alias ls='ls --color=auto' in the ~/.bashrc file.

The annoyance is: Whenever I open a prompt/terminal/bash, the terminal echoes

alias ls='ls --color=auto'

(but not the others!) I would like to remove this notification.

Edit: Here are the other profile files I can find on the system.

#~/.bash_profile
#!/bin/bash
echo "You've got rhythm. You've got music. Anything else?"


#~/.profile
#unmask 022
if [ -n "$BASH_VERSION" ]; then
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi



#/etc/profile
if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi



if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi
share|improve this question
    
What does echo "$PROMPT_COMMAND" and/or echo "$PS1" show you? Those may be declared in ~/.profile or ~/.bash_profile –  glenn jackman Apr 27 '13 at 15:30
    
@glennjackman $ echo $PS1 \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[‌​01;34m\]\w\[\033[00m\]\$ –  isomorphismes Apr 28 '13 at 6:41
    
@glennjackman echo $PROMPT_COMMAND yields nothing (blank line). –  isomorphismes Apr 28 '13 at 6:42
add comment

1 Answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.