<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Command line colors</title>
	<link>http://ask.metafilter.com/15747/Command-line-colors/</link>
	<description>Comments on Ask MetaFilter post Command line colors</description>
	<pubDate>Mon, 28 Feb 2005 21:39:45 -0800</pubDate>
	<lastBuildDate>Mon, 28 Feb 2005 21:39:45 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Command line colors</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors</link>	
		<description>Color in the Linux command line. My slackware 10 system uses contextual color for directory browsing, my RedHat 9 system uses it for vi. Both uses of color make life easier for me, but the difference between the two systems does not. Is there an easy way I can get both computers to use these colors? &lt;br /&gt;&lt;br /&gt; Color vi is (I&apos;m guessing) vim, but I can&apos;t find a slackware package for it and have pretty much no experience building such a thing myself. Don&apos;t recall installing it on purpose, as the RedHat system was set up a long time before I ever expected I&apos;d be using command line much. Color for command line I have no clue about, seems to be the default for a slackware install. As I&apos;m trying to teach myself command line I&apos;m accessing these two computers only via putty / SSH, and the slackware system has no GUI installed to begin with. Any help would be appreciated.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.15747</guid>
		<pubDate>Mon, 28 Feb 2005 21:22:29 -0800</pubDate>
		<dc:creator>caution live frogs</dc:creator>
		
			<category>linux</category>
		
			<category>commandline</category>
		
	</item> <item>
		<title>By: odinsdream</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269174</link>	
		<description>I&apos;ve got a file on my linux system at /etc/DIR_COLORS that defines the color codes for certain filetypes. If you make sure both systems have this same file, perhaps that would sync them up?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269174</guid>
		<pubDate>Mon, 28 Feb 2005 21:39:45 -0800</pubDate>
		<dc:creator>odinsdream</dc:creator>
	</item><item>
		<title>By: caution live frogs</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269190</link>	
		<description>DIR_COLORS does match, and yet no colors. I&apos;m using the exact same settings for PuTTY except for the hostname, so it&apos;s not that...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269190</guid>
		<pubDate>Mon, 28 Feb 2005 22:15:24 -0800</pubDate>
		<dc:creator>caution live frogs</dc:creator>
	</item><item>
		<title>By: benzo8</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269201</link>	
		<description>Are you using the same shell? (bash, tsch, etc.?)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269201</guid>
		<pubDate>Mon, 28 Feb 2005 22:46:37 -0800</pubDate>
		<dc:creator>benzo8</dc:creator>
	</item><item>
		<title>By: krisjohn</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269230</link>	
		<description>How do I get vi to NOT use colours?  Colour coding makes it much more difficult for me to read non-proportional fonts.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269230</guid>
		<pubDate>Tue, 01 Mar 2005 00:00:15 -0800</pubDate>
		<dc:creator>krisjohn</dc:creator>
	</item><item>
		<title>By: AlexReynolds</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269241</link>	
		<description>Dare I suggest emacs/Xemacs to a vi user?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269241</guid>
		<pubDate>Tue, 01 Mar 2005 00:19:19 -0800</pubDate>
		<dc:creator>AlexReynolds</dc:creator>
	</item><item>
		<title>By: grouse</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269250</link>	
		<description>If you are using bash, use the command &lt;tt&gt;type ls&lt;/tt&gt; to find out if ls is aliased to anything. On my Fedora Core 3 system, ls is actually &apos;ls --color=tty&apos;. On my Cygwin system, ls is actually &apos;ls --color=auto --ignore-backups&apos;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269250</guid>
		<pubDate>Tue, 01 Mar 2005 00:47:58 -0800</pubDate>
		<dc:creator>grouse</dc:creator>
	</item><item>
		<title>By: gi_wrighty</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269270</link>	
		<description>krisjohn:  you could try:&lt;br&gt;
&lt;br&gt;
:syntax off</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269270</guid>
		<pubDate>Tue, 01 Mar 2005 02:47:58 -0800</pubDate>
		<dc:creator>gi_wrighty</dc:creator>
	</item><item>
		<title>By: Wolfdog</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269276</link>	
		<description>For the colored directory listing,&lt;br&gt;
&lt;br&gt;
&lt;img src=&quot;http://img.photobucket.com/albums/v606/Oewd/color-ls.jpg&quot;&gt;&lt;br&gt;
&lt;br&gt;
(Then you can alias &lt;tt&gt;ls&lt;/tt&gt; so you don&apos;t have to type this every time).  The syntax for setting the environment variable depends on your shell, of course, but this should work for you.&lt;br&gt;
&lt;br&gt;
For vi, it depends on which implementation of vi you&apos;re using.  If you have vim, or gvim, then &lt;tt&gt;:syntax enable&lt;/tt&gt; should turn syntax coloring on.  &lt;br&gt;
&lt;br&gt;
&lt;small&gt;Alex:  no, the only point of that would be to call attention to yourself, which is not necessary here.&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269276</guid>
		<pubDate>Tue, 01 Mar 2005 03:15:57 -0800</pubDate>
		<dc:creator>Wolfdog</dc:creator>
	</item><item>
		<title>By: ajbattrick</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269296</link>	
		<description>puTTY has colour settings to change the colours displayed. Change them in &quot;Window -&amp;gt; Colours&quot;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269296</guid>
		<pubDate>Tue, 01 Mar 2005 04:43:15 -0800</pubDate>
		<dc:creator>ajbattrick</dc:creator>
	</item><item>
		<title>By: Wolfdog</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269310</link>	
		<description>If you &lt;i&gt;don&apos;t&lt;/i&gt; have vim on your slackware, bite the bullet, &lt;a href=&quot;http://www.vim.org/download.php#unix&quot;&gt;download the source and build it.&lt;/a&gt; It won&apos;t hurt a bit and you&apos;ll be quite pleased with yourself.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269310</guid>
		<pubDate>Tue, 01 Mar 2005 05:57:25 -0800</pubDate>
		<dc:creator>Wolfdog</dc:creator>
	</item><item>
		<title>By: caution live frogs</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269324</link>	
		<description>&lt;code&gt;type&lt;/code&gt; and &lt;code&gt;alias&lt;/code&gt; seemed to help me out the most here, thanks everyone. The slackware system was set up as&lt;br&gt;
&lt;code&gt;alias dir=&apos;ls $LS_OPTIONS --format=vertical&apos;&lt;br&gt;alias ls=&apos;ls $LS_OPTIONS&apos;&lt;/code&gt;&lt;br&gt;
After I changed the aliases defined in &lt;code&gt;.bashrc&lt;/code&gt; on the RedHat system the colors match.&lt;br&gt;
&lt;br&gt;
As for vi, that was easy once I knew where to look - the RedHat system was set up as &lt;code&gt;alias vi=&apos;vim&apos;&lt;/code&gt;. Simple enough, never realized vim actually was already on the slackware box.&lt;br&gt;
&lt;br&gt;
(Given the sudden drop in support by RedHat I&apos;m really liking the slackware system more and more...)&lt;br&gt;
&lt;br&gt;
And AlexReynolds... &lt;code&gt;-bash: emacs: command not found&lt;/code&gt; :)&lt;br&gt;
Not married to vi, it just happened to be the default text editor. Is emacs worth the trouble to learn one more set of commands?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269324</guid>
		<pubDate>Tue, 01 Mar 2005 06:24:08 -0800</pubDate>
		<dc:creator>caution live frogs</dc:creator>
	</item><item>
		<title>By: AlexReynolds</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269347</link>	
		<description>&lt;i&gt;Is emacs worth the trouble to learn one more set of commands?&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
I&apos;m not married to emacs, and it is useful to know vi since it is on every UNIX system. Just that &lt;a href=&quot;http://www.xemacs.org/&quot;&gt;xemacs&lt;/a&gt; is highly extensible. I&apos;d take a few minutes to learn its basics.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269347</guid>
		<pubDate>Tue, 01 Mar 2005 07:39:16 -0800</pubDate>
		<dc:creator>AlexReynolds</dc:creator>
	</item><item>
		<title>By: cytherea</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269377</link>	
		<description>caution, emacs is well worth the trouble, if you&apos;re going to spend any amount of time with a text editor.&lt;br&gt;
&lt;br&gt;
You might want to take a look at &lt;a href=&quot;http://www.debian.org/&quot;&gt;debian&lt;/a&gt; as well: installing packages should not be a headache.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269377</guid>
		<pubDate>Tue, 01 Mar 2005 08:07:58 -0800</pubDate>
		<dc:creator>cytherea</dc:creator>
	</item><item>
		<title>By: mnology</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#269495</link>	
		<description>Set puTTY terminal to vt100 or color_xterm and change your TERM to match this. To remove colors in vim without doing it in vim every time create ~/.vimrc with this in it:&lt;br&gt;
&lt;br&gt;
syntax off&lt;br&gt;
&lt;br&gt;
For extra dorkiness here is my .vimrc, and pertinent portions of my .profile with an ANSI colored command line. (OpenBSD with colorls port, remove any line feeds ). I dig vim highlighting.&lt;br&gt;
&lt;br&gt;
~/.bashrc:&lt;br&gt;
TERM=color_xterm&lt;br&gt;
EDITOR=/usr/local/bin/vim&lt;br&gt;
PS1=&apos;\[\033[1;37m\][\[\033[1;34m\]\h\[\033[1;37m\]]\[\033[1;36m\]|\[&lt;br&gt;
\033[1;37m\][\[\033[0;34m\]\u\[\033[1;37m\]]\n\[\033[0;37m\]\[&lt;br&gt;
\033[1;35m\]\w\[\033[0m\]:&apos;&lt;br&gt;
#For Linux use &lt;br&gt;
eval -b /&apos;etc/DIR_COLORS&apos;&lt;br&gt;
alias ls=&apos;ls --color=auto&apos;&lt;br&gt;
#LSCOLORS=exHxgxGxExghehhEhHhGHEHG&lt;br&gt;
#alias ls=&apos;/usr/local/bin/colorls -FG&apos;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
~/.vimrc:&lt;br&gt;
set background=dark (use 16 colors instead of 8 in vim highlights)&lt;br&gt;
syntax on&lt;br&gt;
set hlsearch&lt;br&gt;
set nocompatible&lt;br&gt;
set autoindent&lt;br&gt;
set smartindent&lt;br&gt;
set tabstop=2&lt;br&gt;
set shiftwidth=2&lt;br&gt;
set showmatch&lt;br&gt;
set ruler&lt;br&gt;
set incsearch</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-269495</guid>
		<pubDate>Tue, 01 Mar 2005 09:55:48 -0800</pubDate>
		<dc:creator>mnology</dc:creator>
	</item><item>
		<title>By: grouse</title>
		<link>http://ask.metafilter.com/15747/Command-line-colors#270102</link>	
		<description>&lt;big&gt;&lt;big&gt;&lt;a href=&quot;http://www.gnu.org/fun/jokes/ed.msg.html&quot;&gt;ed is the standard text editor.&lt;/a&gt;&lt;/big&gt;&lt;/big&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15747-270102</guid>
		<pubDate>Wed, 02 Mar 2005 02:28:40 -0800</pubDate>
		<dc:creator>grouse</dc:creator>
	</item>
	</channel>
</rss>
