for some reason I have found that xterm is not working properly as it should be,
for example I was having a customized PS1 and now it only shows PC name and % like so ehab%
, when I run source .bashrc
I get what in PS1 var as a string, not having the matched colors or name [\[\e[0;31m\]\u\[\e[m\] \[\e[0;36m\]\W\[\e[m\]]\$
. any idea why is that happening?
here is my .bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
#PS1='[\u \W]\$ '
PS1='[\[\e[0;31m\]\u\[\e[m\] \[\e[0;36m\]\W\[\e[m\]]\$ '
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export PATH="$PATH://opt/anaconda/bin" # Add anaconda to PATH
export VISUAL="vim"
export ECLIPSE_HOME="~/Downloads/eclipse/eclipse"
export PYTHONPATH="$PYTHONPATH:/usr/lib/python3.5/site-packages/"
#export TERM=xterm-color
export WORKON_HOME=~/.virtualenvs
source /usr/bin/virtualenvwrapper.sh
alias tmux="TERM=screen-256color-bce tmux"
.bash_profile
#
# ~/.bash_profile
#
source ~/.profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Got it!! I was working with bash shell and for some strangely weird reason it has been switched to zsh which has its own settings, so it's only require switching back to the bash shell to fix the problem.