<?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>Yoann Gini &#187; shell</title>
	<atom:link href="http://blog.inig-services.com/tags/shell/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.inig-services.com</link>
	<description>iNig-Services</description>
	<lastBuildDate>Thu, 09 Sep 2010 10:34:22 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Configuration de zsh</title>
		<link>http://blog.inig-services.com/archives/20</link>
		<comments>http://blog.inig-services.com/archives/20#comments</comments>
		<pubDate>Tue, 17 Feb 2009 20:06:59 +0000</pubDate>
		<dc:creator>Yoann</dc:creator>
				<category><![CDATA[Général]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://blog.inig-services.com/?p=20</guid>
		<description><![CDATA[Pour tout ceux qui sont intéressé par ZSH, je met a disposition mon fichier de conf .zshenv, si vous avez des questions ou des commentaires, n&#8217;hésitez pas :-) bindkey &#34;^[[3~&#34; delete-char &#160; #prompt autoload -U colors &#38;amp;&#38;amp; colors export PS1=&#34;%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[green]%}%~ %{$reset_color%}% %T %% &#34; &#160; autoload -U compinit compinit setopt correctall export HISTSIZE=2000 export [...]]]></description>
			<content:encoded><![CDATA[<p>Pour tout ceux qui sont intéressé par ZSH, je met a disposition mon fichier de conf .zshenv, si vous avez des questions ou des commentaires, n&#8217;hésitez pas :-)<br />
<span id="more-20"></span><br />
<span style="font-family: -webkit-monospace;"><br />
</span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">bindkey <span style="color: #ff0000;">&quot;^[[3~&quot;</span> delete-char
&nbsp;
<span style="color: #666666; font-style: italic;">#prompt</span>
autoload <span style="color: #660033;">-U</span> colors <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; colors
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;%{<span style="color: #007800;">$fg</span>[red]%}%n%{<span style="color: #007800;">$reset_color</span>%}@%{<span style="color: #007800;">$fg</span>[blue]%}%m %{<span style="color: #007800;">$fg</span>[green]%}%~ %{<span style="color: #007800;">$reset_color</span>%}% %T %% &quot;</span>
&nbsp;
autoload <span style="color: #660033;">-U</span> compinit
compinit
setopt correctall
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTSIZE</span>=<span style="color: #000000;">2000</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTFILE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/.history&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">SAVEHIST</span>=<span style="color: #007800;">$HISTSIZE</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#ignorer les doublon historique + les commande commançant par espace</span>
setopt hist_ignore_all_dups
setopt hist_ignore_space
&nbsp;
setopt autocd 
&nbsp;
<span style="color: #666666; font-style: italic;">#regex etendu</span>
setopt extendedglob
&nbsp;
<span style="color: #666666; font-style: italic;"># Gestion du ls : couleur + touche pas aux accents</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">ls</span></span>=<span style="color: #ff0000;">'ls -pGh'</span>
 
&nbsp;
<span style="color: #666666; font-style: italic;"># echap + H affiche la manpage</span>
<span style="color: #7a0874; font-weight: bold;">unalias</span> run-help
autoload run-help
&nbsp;
<span style="color: #666666; font-style: italic;"># Completition pour killall </span>
zstyle <span style="color: #ff0000;">':completion:*:processes-names'</span> <span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #ff0000;">'ps -e -o comm='</span>
 
&nbsp;
<span style="color: #666666; font-style: italic;"># Completition pour kill</span>
zstyle <span style="color: #ff0000;">':completion:*:processes'</span> <span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #ff0000;">'ps -au$USER'</span>
zstyle <span style="color: #ff0000;">':completion:*:*:kill:*:processes'</span> list-colors <span style="color: #ff0000;">'=(#b) #([0-9]#)*=0=01;32'</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># completion</span>
zstyle <span style="color: #ff0000;">':completion:::::'</span> completer _complete _approximate
zstyle <span style="color: #660033;">-e</span> <span style="color: #ff0000;">':completion:*:approximate:*'</span> max-errors <span style="color: #ff0000;">'reply=( $(( ($#PREFIX + $#SUFFIX) / 3 )) )'</span>
zstyle <span style="color: #ff0000;">':completion:*:descriptions'</span> format <span style="color: #ff0000;">&quot;- %d -&quot;</span>
zstyle <span style="color: #ff0000;">':completion:*:corrections'</span> format <span style="color: #ff0000;">&quot;- %d - (errors %e})&quot;</span>
zstyle <span style="color: #ff0000;">':completion:*:default'</span> list-prompt <span style="color: #ff0000;">'%S%M matches%s'</span>
zstyle <span style="color: #ff0000;">':completion:*'</span> group-name <span style="color: #ff0000;">''</span>
zstyle <span style="color: #ff0000;">':completion:*:manuals'</span> separate-sections <span style="color: #c20cb9; font-weight: bold;">true</span>
zstyle <span style="color: #ff0000;">':completion:*:manuals.(^1*)'</span> insert-sections <span style="color: #c20cb9; font-weight: bold;">true</span>
zstyle <span style="color: #ff0000;">':completion:*'</span> menu <span style="color: #000000; font-weight: bold;">select</span>
zstyle <span style="color: #ff0000;">':completion:*'</span> verbose <span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
 </pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.inig-services.com/archives/20/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
