<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pieces of Life... &#187; bash</title>
	<atom:link href="http://www.bogdanirimia.ro/tag/bash/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bogdanirimia.ro</link>
	<description>Bogdan Irimia&#039;s Web Space</description>
	<lastBuildDate>Fri, 18 Mar 2011 20:11:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Make Solaris more friendly</title>
		<link>http://www.bogdanirimia.ro/make-solaris-more-friendly/261</link>
		<comments>http://www.bogdanirimia.ro/make-solaris-more-friendly/261#comments</comments>
		<pubDate>Fri, 12 Feb 2010 11:57:35 +0000</pubDate>
		<dc:creator>Myself</dc:creator>
				<category><![CDATA[Server administration]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.bogdanirimia.ro/?p=261</guid>
		<description><![CDATA[Of course, most Solaris users are at an advanced level and those little nice things in a Linux console don&#8217;t matter that much. But I like to be more productive and enjoy using all the features I can get from a console. So here&#8217;s how I am customizing my Solaris console: 1. I am using [...]]]></description>
			<content:encoded><![CDATA[<p>Of course, most Solaris users are at an advanced level and those little nice things in a Linux console don&#8217;t matter that much. But I like to be more productive and enjoy using all the features I can get from a console. So here&#8217;s how I am customizing my Solaris console:</p>
<p>1. I am using <strong>bash </strong>- this brings most of the features I enjoy: auto-complete at TAB and previous commands list being the most important. To enable <em>bash</em> you have to edit the file &#8220;/etc/passwd&#8221; like this (note the path to the console at the end):</p>
<pre class="brush: bash; title: ; notranslate">username:x:100:100:NameOfUser:/homepath:/bin/bash</pre>
<p>2. I am making <strong>vim</strong> work &#8211; <em>vim </em>is my preferred editor on Unix. For that, I must install <em>vim </em>(using Blastwave) and put the path in the PATH variable. See number 3 for this. After making <em>vim </em>work, I am setting it to work as I like &#8211; like on a Linux console <img src='http://www.bogdanirimia.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . To do that, I am creating a file named .vimrc in my home folder with the following content:</p>
<pre class="brush: bash; title: ; notranslate">
set nocompatible &quot; must be the first line
:syntax enable
filetype on
filetype indent on
filetype plugin on
set laststatus=2
set statusline=%&lt;%f\%h%m%r%=%-20.(line=%l\ \ col=%c%V\ \ totlin=%L%)\ \ \%h%m%r%=%-40(bytval=0x%B,%n%Y%)\%P
set backspace=2
</pre>
<p>3. I am configuring the console to set <em>vim </em>as the default editor, to set the PATH with everything I need, to set the pager with <em>more </em>and to configure the shell prompt. For this, I am creating a file name .profile (or edit if existing) with the following content:</p>
<pre class="brush: bash; title: ; notranslate">
export PATH=/usr/bin:/opt/csw/bin
export TERM=linux
export PAGER=more
export EDITOR=vim
export PS1='[\u@\h \w]\$ '
</pre>
<p>So&#8230; this is it! Now I have a much nicer console!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bogdanirimia.ro/make-solaris-more-friendly/261/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

