<?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>Tips &#8211; Phocean.net</title>
	<atom:link href="/tag/tips/feed" rel="self" type="application/rss+xml" />
	<link>/</link>
	<description>Computer Security Blog</description>
	<lastBuildDate>Fri, 24 Feb 2017 21:17:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.10</generator>
	<item>
		<title>Getting colors in the terminal</title>
		<link>/2006/12/05/getting-colors-in-the-terminal.html</link>
		<pubDate>Tue, 05 Dec 2006 11:21:00 +0000</pubDate>
		<dc:creator><![CDATA[phocean]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://192.168.1.10/wordpress/?p=9</guid>
		<description><![CDATA[<p>I took several pieces of bash configuration from the net and use them as follow to be more productive with my terminal. A must have setting !</p>]]></description>
				<content:encoded><![CDATA[<p>I took several pieces of bash configuration from the net and use them as follow to be more productive with my terminal. A must have setting !</p>
<p><span id="more-9"></span></p>
<p>Thanks to this setting, you can get colored path and files, full completion (e.g when using sudo or apt-*) and some convenient aliases.</p>
<p>Here is the corresponding <strong>.bashrc</strong> (must be in the root of your home directory) :</p>
<pre>test -s ~/.alias &amp;&amp; . ~/.alias || true
export PATH=&quot;/opt/mono-1.1.15/bin:$PATH&quot;
export PKG_CONFIG_PATH=&quot;/opt/mono-1.1.15/lib/pkgconfig:$PKG_CONFIG_PATH&quot;
export MANPATH=&quot;/opt/mono-1.1.15/share/man:$MANPATH&quot;
export LD_LIBRARY_PATH=&quot;/opt/mono-1.1.15/lib:$LD_LIBRARY_PATH&quot;
export HISTCONTROL=ignoreboth
ROUGE='\[&#92;&#48;33[0;31m\]'
MARRON='\[&#92;&#48;33[0;33m\]'
NOC='\[&#92;&#48;33[0;0m\]'
PS1=&quot;$MARRON[\u@\h:$ROUGE\w$MARRON] \$ $NOC&quot;
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
alias cp=&quot;cp -i&quot;
alias mv=&quot;mv -i&quot;
alias rm=&quot;rm -i&quot;
alias ls=&quot;ls --color='always'&quot;
alias dir=&quot;dir --color='always'&quot;
alias grep=&quot;grep --color='always'&quot;
alias md=&quot;mkdir&quot;
alias rd=&quot;rmdir&quot;
alias cd..='cd ..'
alias glxgears=&quot;glxgears -printfps&quot;
alias cdrom=&quot;mount -t iso9660 /dev/cdrom /mnt/cdrom&quot;
alias ll=&quot;ls -alh&quot;
alias la=&quot;ls -a&quot;
alias screenshot=&quot;import -pause 5 -window root&quot;</pre>
<p>Here is the content of an <strong>.inputrc</strong> file (as well in your home directory), that you have to create to get the bash not case sensitive during the completion (very convenient) :</p>
<pre>set completion-ignore-case on</pre>
<p>Oh and have you ever tried zsh ? I tried recently. It is definitely a great shell, much improved compared to bash. I have been using it for a while, but didn&#8217;t like the way it manages the <ins>[del]</ins> key.</p>
<p>I guess there must be a solution but haven&#8217;t looked for that yet. I will update you if I find it&#8230; or do you know how to ?</p>
<p>Let&#8217;s finish with vim. Just create a .vimrc file, containing this line :</p>
<pre>:syntax on</pre>
<p><strong>Isn&#8217;t the terminal much more pretty like that ? Why isn&#8217;t it a default setting ?</strong></p>
]]></content:encoded>
			</item>
	</channel>
</rss>
