Report this

What is the reason for this report?

colorize bash prompt?

Posted on February 14, 2014

hi,

I want to colorize my bash prompt, and added .bash_profile in my home dir (/root):

----8<-------- #############################################################################

export PS1=‘[\033[01;31m]\u[\033[01;33m]@[\033[01;36m]\h [\033[01;33m]\w [\033[01;35m]$ [\033[00m]’ umask 022

#############################################################################

eval “dircolors

#############################################################################

alias ls=‘ls $LS_OPTIONS’ alias ll=‘ls $LS_OPTIONS -l’ alias l=‘ls $LS_OPTIONS -lA’ alias …=‘cd …’ alias …=‘cd …/…’ alias s=‘ssh -l root’

#############################################################################

export EDITOR=“nano”

export HISTFILESIZE=99999999 export HISTSIZE=99999999 export HISTCONTROL=“ignoreboth”

export LS_OPTIONS=‘–color=auto -h’

############################################################################# #naj:

if [ -f ~/.bashrc ]; then source ~/.bashrc fi ----8<--------

that did not work, and adding above to .bashrc either.

How can I get bash colorized?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.