<?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>Renato Carvalho .NET &#187; Produtividade</title>
	<atom:link href="http://renatocarvalho.net/category/linux/console/produtividade/feed" rel="self" type="application/rss+xml" />
	<link>http://renatocarvalho.net</link>
	<description>E no twitter @rmichnik</description>
	<lastBuildDate>Sun, 02 Oct 2011 12:25:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Personalização do prompt do bash</title>
		<link>http://renatocarvalho.net/personalizacao-do-prompt-do-bash</link>
		<comments>http://renatocarvalho.net/personalizacao-do-prompt-do-bash#comments</comments>
		<pubDate>Tue, 05 Apr 2011 18:11:17 +0000</pubDate>
		<dc:creator>Renato Michnik de Carvalho</dc:creator>
				<category><![CDATA[Console]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Produtividade]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://renatocarvalho.net/?p=288</guid>
		<description><![CDATA[Abra (ou crie caso não exista) seu ~/.bashrc e inclua as seguintes linhas: function colorir_bash &#123; local WHITE=&#34;\[\e[0;37m\]&#34; local BRIGHTGREEN=&#34;\[\e[1;32m\]&#34; local GREEN=&#34;\[\e[0;32m\]&#34; local CYAN=&#34;\[\e[0;36m\]&#34; local GRAY=&#34;\[\e[0;37m\]&#34; local RED=&#34;\[\e[0;31m\]&#34; local YELLOW=&#34;\[\e[0;33m\]&#34; local BLACK=&#34;\[\e[0;30m\]&#34; PS1=&#34;${WHITE}[ ${YELLOW}\u${WHITE}@${RED}\h ${CYAN}\w${WHITE} ] #${GRAY} &#34; &#125; &#160; colorir_bash Salve e digite source ~/.bashrc Essa é a configuração que uso, monte a sua, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://renatocarvalho.net/wp-content/uploads/shell.png" rel="lightbox[288]"><img class="alignleft size-full wp-image-294" title="shell" src="http://renatocarvalho.net/wp-content/uploads/shell.png" alt="" width="48" height="48" /></a>Abra (ou crie caso não exista) seu ~/.bashrc e inclua as seguintes linhas:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> colorir_bash
<span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #007800;">WHITE</span>=<span style="color: #ff0000;">&quot;\[\e[0;37m\]&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #007800;">BRIGHTGREEN</span>=<span style="color: #ff0000;">&quot;\[\e[1;32m\]&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #007800;">GREEN</span>=<span style="color: #ff0000;">&quot;\[\e[0;32m\]&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #007800;">CYAN</span>=<span style="color: #ff0000;">&quot;\[\e[0;36m\]&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #007800;">GRAY</span>=<span style="color: #ff0000;">&quot;\[\e[0;37m\]&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #007800;">RED</span>=<span style="color: #ff0000;">&quot;\[\e[0;31m\]&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #007800;">YELLOW</span>=<span style="color: #ff0000;">&quot;\[\e[0;33m\]&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #007800;">BLACK</span>=<span style="color: #ff0000;">&quot;\[\e[0;30m\]&quot;</span>
    <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${WHITE}</span>[ <span style="color: #007800;">${YELLOW}</span>\u<span style="color: #007800;">${WHITE}</span>@<span style="color: #007800;">${RED}</span>\h <span style="color: #007800;">${CYAN}</span>\w<span style="color: #007800;">${WHITE}</span> ] #<span style="color: #007800;">${GRAY}</span> &quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
colorir_bash</pre></div></div>

<p>Salve e digite</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">source</span> ~<span style="color: #000000; font-weight: bold;">/</span>.bashrc</pre></div></div>

<p>Essa é a configuração que uso, monte a sua, poste nos comentários :-)</p>
<ul class="related_post"><li><a href="http://renatocarvalho.net/recuperando-a-senha-do-mysql" title="Recuperando a senha do Mysql">Recuperando a senha do Mysql</a></li><li><a href="http://renatocarvalho.net/plugin-java-no-firefox-3-6-x" title="Plugin java no firefox 3.6.x">Plugin java no firefox 3.6.x</a></li><li><a href="http://renatocarvalho.net/atualizacao-do-ubuntu-intrepid-para-o-jaunty-jackalope" title="Atualização do Ubuntu Intrepid para o Jaunty Jackalope">Atualização do Ubuntu Intrepid para o Jaunty Jackalope</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://renatocarvalho.net/personalizacao-do-prompt-do-bash/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Meu .screenrc</title>
		<link>http://renatocarvalho.net/meu-screenrc</link>
		<comments>http://renatocarvalho.net/meu-screenrc#comments</comments>
		<pubDate>Tue, 31 Jul 2007 18:14:55 +0000</pubDate>
		<dc:creator>Renato Michnik de Carvalho</dc:creator>
				<category><![CDATA[Console]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Produtividade]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://renatocarvalho.net/meu-screenrc.html</guid>
		<description><![CDATA[Há muito tempo uso o screen para janelizar o modo texto, o pontapé inicial foi lendo os artigos do Aurélio como esse e esse há alguns anos atrás ainda na extinta Revista do Linux, também peguei o .screenrc dele e modifiquei para deixar ele mais joiado (IMHO) e o resultado pode ser conferido abaixo. 1 [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://renatocarvalho.net/uploads/terminal.gif" alt="terminal.gif" align="left" />Há muito tempo uso o screen para janelizar o modo texto, o pontapé inicial foi lendo os artigos do <a title="Esse cara é foda!" href="http://www.aurelio.net">Aurélio</a> como <a href="http://www.dicas-l.com.br/artigos/linux-modotexto/coluna07.html">esse</a> e <a href="http://www.dicas-l.com.br/artigos/linux-modotexto/coluna08.html">esse</a> há alguns anos atrás ainda na extinta Revista do Linux, também peguei o .screenrc dele e modifiquei para deixar ele mais joiado (IMHO) e o resultado pode ser conferido abaixo.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'R'</span> wrap
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'r'</span> resize
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'+'</span> resize +<span style="color: #000000;">5</span>
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'-'</span> resize <span style="color: #660033;">-5</span>
autodetach on <span style="color: #666666; font-style: italic;"># default: on</span>
crlf off <span style="color: #666666; font-style: italic;"># default: off</span>
deflogin off <span style="color: #666666; font-style: italic;"># default: on</span>
hardcopy_append on <span style="color: #666666; font-style: italic;"># default: off</span>
startup_message off <span style="color: #666666; font-style: italic;"># default: on</span>
vbell on <span style="color: #666666; font-style: italic;"># default: ???</span>
termcapinfo xterm ti<span style="color: #000000; font-weight: bold;">@</span>:te<span style="color: #000000; font-weight: bold;">@</span>
termcapinfo linux <span style="color: #ff0000;">&quot;ve=E[?25hE[?17;0;64c&quot;</span>
defscrollback <span style="color: #000000;">1000</span> <span style="color: #666666; font-style: italic;"># default: 100</span>
silencewait <span style="color: #000000;">15</span> <span style="color: #666666; font-style: italic;"># default: 30</span>
shell bashhardstatus alwayslastline <span style="color: #ff0000;">&quot;%{gk} ROOTLINUX %{rk}%c:%s %{y0}%d/%m/%Y %{wk}%?%-Lw%?%{wk}%n%f %{rk}[%{wk}%t%{rk}]%?(%u)%?%{wk}%?%+Lw%? %= %{ck}RENATO MICHNIK DE CARVALHO&quot;</span>
sorendition kG <span style="color: #666666; font-style: italic;"># black  on bold green</span>
activity <span style="color: #ff0000;">&quot;%C -&amp;gt; %n%f %t activity!&quot;</span>
bell <span style="color: #ff0000;">&quot;------------------------------- %n%f - %t ------------------------------&quot;</span>
pow_detach_msg <span style="color: #ff0000;">&quot;BYE&quot;</span>
vbell_msg <span style="color: #ff0000;">&quot; *beep* &quot;</span>
msgwait <span style="color: #000000;">1</span>
version
msgwait <span style="color: #000000;">2</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># segurança: desligar algumas tecla perigosasbind k</span>
<span style="color: #7a0874; font-weight: bold;">bind</span> ^k
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'^'</span>
<span style="color: #7a0874; font-weight: bold;">bind</span> z
<span style="color: #7a0874; font-weight: bold;">bind</span> ^z
<span style="color: #7a0874; font-weight: bold;">bind</span> x
<span style="color: #7a0874; font-weight: bold;">bind</span> s
<span style="color: #7a0874; font-weight: bold;">bind</span> ^s
&nbsp;
<span style="color: #666666; font-style: italic;"># e aqui fica o kill</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'K'</span> <span style="color: #c20cb9; font-weight: bold;">kill</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### do /etc/screenrctermcap  facit|vt100|xterm LP:G0</span>
terminfo facit<span style="color: #000000; font-weight: bold;">|</span>vt100<span style="color: #000000; font-weight: bold;">|</span>xterm LP:G0
&nbsp;
<span style="color: #666666; font-style: italic;">#the vt100 description does not mention &quot;dl&quot;. *sigh*</span>
termcap  vt100 <span style="color: #007800;">dl</span>=5E<span style="color: #7a0874; font-weight: bold;">&#91;</span>M
terminfo vt100 <span style="color: #007800;">dl</span>=5E<span style="color: #7a0874; font-weight: bold;">&#91;</span>M
&nbsp;
shelltitle <span style="color: #ff0000;">'] |SHELL'</span><span style="color: #666666; font-style: italic;">#disparando uns programas automaticamente</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #660033;">-t</span> EMAIL <span style="color: #000000;">0</span> mutt
<span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #660033;">-t</span> IM <span style="color: #000000;">1</span> centericq
<span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #660033;">-t</span> MP3 <span style="color: #000000;">2</span> mocp <span style="color: #660033;">-T</span> green_theme <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>sda5<span style="color: #000000; font-weight: bold;">/</span>mp3<span style="color: #000000; font-weight: bold;">/</span>musicas.m3u
<span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #660033;">-t</span> RL <span style="color: #000000;">3</span>
<span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #660033;">-t</span> MDS <span style="color: #000000;">4</span></pre></td></tr></table></div>

<ul class="related_post"><li><a href="http://renatocarvalho.net/recuperando-a-senha-do-mysql" title="Recuperando a senha do Mysql">Recuperando a senha do Mysql</a></li><li><a href="http://renatocarvalho.net/personalizacao-do-prompt-do-bash" title="Personalização do prompt do bash">Personalização do prompt do bash</a></li><li><a href="http://renatocarvalho.net/plugin-java-no-firefox-3-6-x" title="Plugin java no firefox 3.6.x">Plugin java no firefox 3.6.x</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://renatocarvalho.net/meu-screenrc/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

