LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2003, 05:56 PM   #1
kazuni
Member
 
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Rep: Reputation: 30
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
 
Old 06-03-2003, 07:50 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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
 
Old 06-03-2003, 08:18 PM   #3
kazuni
Member
 
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Original Poster
Rep: Reputation: 30
wow, thanks a lot MasterC, i got it right now
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Preserving Permissions RemusX2 Linux - Software 2 07-10-2005 11:20 AM
Can I set ssh to change my konsole colours when I connect to a remote box? davee Linux - General 2 12-16-2004 02:56 PM
scp with preserving permissions pradi_net Linux - Software 1 06-08-2004 08:00 AM
Preserving permissions when using cp pilot1 Linux - General 2 08-16-2003 05:29 AM
help on preserving applications when upgrading doublefailure Linux - General 5 10-01-2002 11:42 PM


All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration