|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
LS_COLORS, vi and PuTTY tips please
Hi all,
Am using PuTTY with mRemote when connecting to my servers. I have different background for each of the type of servers and I group them as DEV, TEST, QUAL, PROD and SA. So PROD has white background, SA have blue, DEV has black and so on. Problem is with a white background, running man commands hides some of the options that you will normally see when you have a black background. Worse is on a blue background, running ls, I can barely see the directories 'coz they are configured as blue as well. Even on a black background, the blue is barely visible. When running vim, I can hardly see the comments at all -Does anyone have any tricks that I can use so that I can change the colors on the fly depending on the background that I am currently using, both for the LS_COLORS and vim? Any advice much appreciated. Thanks in advance. |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
1. Try un-aliasing ls
unalias ls
2. In vim, you may use a different colour scheme. Once you enter into vim; in the escape mode try this: :colorscheme desert . 'desert' is just an example. You may google to see the different color scheme options available. |
| The Following User Says Thank You to balajesuri For This Useful Post: | ||
newbie_01 (04-25-2012) | ||
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Found how to change color scheme using the colors command. So just need some tips on setting LS_COLORS the quickest way possible. Thanks
---------- Post updated at 07:34 PM ---------- Previous update was at 07:18 PM ---------- Quote:
Hi, unalias works. Found one where you can specify a highlight/reverse kind of thingy so playing around with that one for the time being. For vim/vi, is there anyway I can put the color scheme that I want to use in some type of scripts that I can run manually when I login to the server? I can't change the .profile or .bashrc file because this file is shared amongst the other users who also login to the same server and my team leader doesn't like anyone changing these files. So what am looking for is after I login, I run another script manually that sort of configure the vim and ls_colors settings that I am wanting to use. Any tips much appreciated. Thanks. . |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tips | xerox | UNIX for Dummies Questions & Answers | 1 | 02-24-2011 08:01 AM |
| using pca for the first time, any tips? | NewSolarisAdmin | Solaris | 2 | 02-20-2009 09:35 AM |
| linux tips | chlawren | Red Hat | 8 | 03-13-2008 11:22 AM |
| tips Solaris | chanfle | Solaris | 7 | 12-17-2007 04:47 AM |
|
|