<?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>A Lonely Impulse &#187; Uncategorized</title>
	<atom:link href="http://brett.benders.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://brett.benders.net</link>
	<description>brett bender's oblogitary - all the cool kids have one...</description>
	<lastBuildDate>Fri, 25 Jul 2008 23:29:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>zsh WORDCHARS</title>
		<link>http://brett.benders.net/2008/07/25/zsh-wordchars/</link>
		<comments>http://brett.benders.net/2008/07/25/zsh-wordchars/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 23:29:40 +0000</pubDate>
		<dc:creator>brett</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://brett.benders.net/?p=20</guid>
		<description><![CDATA[At the shell prompt, I want to directories in a path to act like words, so that I can kill them one by one. So I added to my .zshrc

WORDCHARS="${WORDCHARS:s#/#}"

which takes the value of WORDCHARS, removes slash, and assigns back to WORDCHARS. I could also hardcode a literal value like:

WORDCHARS='*?_-.[]~=&#38;;!#$%^(){}&#60;&#62;'

but the former is self-documenting while [...]]]></description>
			<content:encoded><![CDATA[<p>At the shell prompt, I want to directories in a path to act like words, so that I can kill them one by one. So I added to my .zshrc</p>
<pre>
WORDCHARS="${WORDCHARS:s#/#}"
</pre>
<p>which takes the value of WORDCHARS, removes slash, and assigns back to WORDCHARS. I could also hardcode a literal value like:</p>
<pre>
WORDCHARS='*?_-.[]~=&amp;;!#$%^(){}&lt;&gt;'
</pre>
<p>but the former is self-documenting while the latter reads like line noise, or Perl =)</p>
<p>References:</p>
<ul>
<li><a href="http://zsh.sourceforge.net/Doc/Release/zsh_13.html#SEC52">zsh manual / expansion modifiers</a></li>
<li><a href="http://www.zsh.org/mla/users/1998/msg00725.html">zsh mailing list / definition of a word</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://brett.benders.net/2008/07/25/zsh-wordchars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
