can't the file bashrc
i have notice that slackware doesn't have bashrc in /etc and bash_profile, i used to have fc2 on my laptop but i have format it and install slackware10,
and in fc2 i have adjust DIR_COLOR and it work great, but now i am trying to do the same, it work in runlevel 3 and it don't work in runlevel |
What exactly is your question?
|
If you want a sample DIR_COLOR or LS_COLOR, here's mine:
Code:
LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35: |
hi i can't find bashrc in /etc
thanks daihard for LS_COLOR but i didn't it yet try it because i can't find bashrc file, my bash prompt is 2.5, sholuld i upgrade it |
Quote:
Code:
# /etc/bashrc |
My slackware box has a /etc/profile but no /etc/bashrc.
Bash has three diffierent files that it reads at startup - profile, bash_profile and bashrc. Either one may be used, and they are all equally valid --Ian |
very werid going on
my console in runlevel act differnt then in runlevel 5, I have fix my PS1 in runlevel 5 but not in console, other hand i have fix DIR_COLOR in console but not in xwindow. Looks like something is interfering with my console, and my bash in x window the LS_COLOR is not working.
|
Re: very werid going on
Quote:
|
i have edit the menu and i add this aterm -tr -ls, now some reason it work now and i could see color in runlevel 5 could any tell wat is the propose of -ls
In the file .bashrc here what look like if [ "$TERM" = "linux" ] then #we're on the system console or maybe telnetting in export PS1="\e[32;1m[Paxmaster>\t]\e[31;1m" else #we're not on the console, assume an xterm export PS1="\[\e]2;\u@\H\w\a\e[34;1m\]\u\[\e[34;m\]@\h:\[\e[33m\]\W\[\e[32m\$ fi but now i have one more problem when I open a bash prompt above is a saying but i can't read it, because is it black letters and my screen is black, and also when i try to edit a file same thing happen the letter is back how could i fix this. now i almost fix the problem by doing this i change this export PS1="\[\e]2;\u@\H\w\a\e[34;1m\]\u\[\e[34;m\]@\h:\[\e[33m\]\W\[\e[32m\$ to export PS1="\[\e]2;\u@\H\w\a\e[34;1m\]\u\[\e[34;m\]@\h:\[\e[33m\]\W\[\e[31;1m>" this mean whenever i type at command it always show red, but other hand when type man <filename> the letter is black how could i change it to white or other color if some one who use slackware they will know what i am taking about the saying appear thanks |
Whenever I log out of SSH, I find that my colors are all gone. I have to keep "source .bashrc" before I begin my session. How can I make this permanent?
|
All ok now, have added these lines to:
Code:
.bash_profile |
All times are GMT -5. The time now is 08:07 PM. |