LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   preserving konsole colours (https://www.linuxquestions.org/questions/linux-newbie-8/preserving-konsole-colours-63503/)

kazuni 06-03-2003 05:56 PM

preserving konsole colours
 
When i boot my copy of slackware, at the login screen (terminal) after i logged in, the terminal displays color for special stuff like ls folder (executable files (green), tarballs (red) etc). but when i am in x windows and opened a konsole window, ls gave me only black colours (not that i have set the theme - in vi/vim it still displays the color but not in console) why is that? and my vim does not show some of it properly ( it did before, for c codes, syntax highlighting ) anyone know how i can fix that?

(i installed kde 3.1.2 over 3.0 and that is the result.. it also changed my bash to bash-2.05b from [root@darkstar], which i wish i can restore too...) anyone know how? thanks in advance :)

MasterC 06-03-2003 07:50 PM

Your "bash" prompt can be set by using PS1 settings (do a search on that, I'm not too familiar since I'm not concerned with that feature) in your /etc/profile. This is also the area where you might wanna place the aliases below...

To get colors, I suggest aliasing ls to ls --color. I prefer to use ~/.bashrc but you can set them in /etc/profile for system wide changes (which on a single user system you might want so root has the changes too). See man alias, but here's an example:
Code:

alias 1394='/sbin/modprobe ohci1394 && /sbin/modprobe raw1394'
alias firewire='/sbin/modprobe ohci1394 && /sbin/modprobe raw1394'
alias ls='ls --color'
alias ll='ls -l --color'
alias la='ls -a --color'
alias lal='ls -al --color'
alias copycd='dd if=/dev/cdrom conv=noerror | cdrecord dev=0,1,0 speed=48 -v -eject -'

HTH

Cool

kazuni 06-03-2003 08:18 PM

wow, thanks a lot MasterC, i got it right now :D
Code:

lsmod > modules_loaded.txt

hostname -v kazslack
export HOSTNAME
unset PS1
PS1="[\t] \u@\h:\w/> "
export PS1
alias ls='ls --color'

that's mine :D


All times are GMT -5. The time now is 05:18 PM.