<?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>zsh &#8211; Luxing Huang</title>
	<atom:link href="https://luxing.im/tag/zsh/feed/" rel="self" type="application/rss+xml" />
	<link>https://luxing.im</link>
	<description>Thoughs and things</description>
	<lastBuildDate>Mon, 25 Jan 2016 21:48:35 +0000</lastBuildDate>
	<language>en-CA</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
<site xmlns="com-wordpress:feed-additions:1">58771605</site>	<item>
		<title>Solve zsh cursor positioned at the beginning in zsh history lookup using arrow key for Ubuntu</title>
		<link>https://luxing.im/solve-zsh-cursor-positioned-at-the-beginning-in-zsh-history-lookup-using-arrow-key-for-ubuntu/</link>
					<comments>https://luxing.im/solve-zsh-cursor-positioned-at-the-beginning-in-zsh-history-lookup-using-arrow-key-for-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Wed, 13 Jan 2016 19:31:21 +0000</pubDate>
				<category><![CDATA[Techie Stuff]]></category>
		<category><![CDATA[cursor]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zsh]]></category>
		<guid isPermaLink="false">https://luxing.im/?p=578</guid>

					<description><![CDATA[Zsh under Ubuntu has a strange behaviour. When you have typed some commands and use up arrow key to look back, the cursor is always at the beginning of the line. This can be solved very easily. Since Ubuntu inherits package from Debian, this bug is from Debian also. Edit your global zshrc file in &#8230; <p class="link-more"><a href="https://luxing.im/solve-zsh-cursor-positioned-at-the-beginning-in-zsh-history-lookup-using-arrow-key-for-ubuntu/" class="more-link">Continue reading<span class="screen-reader-text"> "Solve zsh cursor positioned at the beginning in zsh history lookup using arrow key for Ubuntu"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>Zsh under Ubuntu has a strange behaviour. When you have typed some commands and use up arrow key to look back, the cursor is always at the beginning of the line. This can be solved very easily.<br />
<span id="more-578"></span></p>
<p>Since Ubuntu inherits package from Debian, this bug is from Debian also. Edit your global zshrc file in Ubuntu here: <code>/etc/zsh/zshrc</code></p>
<p>Remove everything between <code>#ncurses fogyatekos</code> and <code>fi</code>. Save.</p>
<p>Log out and log back in, when you press the up arrow key to do history lookup, the cursor will be placed at the end of line.</p>
<p>Other Linux distribution and Unix operating systems do not have this problem.</p>
<p>If you are using oh-my-zsh, please disable vi-mode.</p>
<p>Reference: <a href="http://www.zsh.org/mla/users/2012/msg00071.html" target="_blank">http://www.zsh.org/mla/users/2012/msg00071.html</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/solve-zsh-cursor-positioned-at-the-beginning-in-zsh-history-lookup-using-arrow-key-for-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">578</post-id>	</item>
		<item>
		<title>Oh-my-zsh Ctrl+R binding</title>
		<link>https://luxing.im/oh-my-zsh-ctrlr-binding/</link>
					<comments>https://luxing.im/oh-my-zsh-ctrlr-binding/#comments</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Sat, 04 Oct 2014 13:30:09 +0000</pubDate>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[zsh]]></category>
		<guid isPermaLink="false">https://luxing.im/?p=428</guid>

					<description><![CDATA[The oh-my-zsh project is a fantastic zsh addon, but when vi-mode is activated, the default behaviour doesn&#8217;t have a ctrl+r reverse search. Add the following line to your .zshrc: bindkey "^R" history-incremental-search-backward And then reload your zsh, the backward search is there.]]></description>
										<content:encoded><![CDATA[<p>The <a href="https://github.com/robbyrussell/oh-my-zsh" target="_blank">oh-my-zsh</a> project is a fantastic zsh addon, but when vi-mode is activated, the default behaviour doesn&#8217;t have a ctrl+r reverse search.<br />
<span id="more-428"></span><br />
Add the following line to your .zshrc:</p>
<pre>bindkey "^R" history-incremental-search-backward</pre>
<p>And then reload your zsh, the backward search is there.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/oh-my-zsh-ctrlr-binding/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">428</post-id>	</item>
		<item>
		<title>zsh trapd00r theme fix</title>
		<link>https://luxing.im/zsh-trapd00r-theme-fix/</link>
					<comments>https://luxing.im/zsh-trapd00r-theme-fix/#comments</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Mon, 14 Apr 2014 22:54:24 +0000</pubDate>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[zsh]]></category>
		<guid isPermaLink="false">http://blog.luxing.im/?p=356</guid>

					<description><![CDATA[Calling it a fix is actually inappropriate, the document has already given us clues. When I am configuring my Z shell today by replacing grml-zsh with oh-my-zsh find a few errors when applying theme trapd00r. I had an strange error: prompt_jnrowe_precmd:3: command not found: zsh_path I solve it by these steps: cd ~/bin # assume &#8230; <p class="link-more"><a href="https://luxing.im/zsh-trapd00r-theme-fix/" class="more-link">Continue reading<span class="screen-reader-text"> "zsh trapd00r theme fix"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>Calling it a fix is actually inappropriate, the document has already given us clues. When I am configuring my Z shell today by replacing <a href="https://grml.org/zsh/" target="_blank">grml-zsh</a> with <a href="https://github.com/robbyrussell/oh-my-zsh" target="_blank">oh-my-zsh</a> find a few errors when applying theme trapd00r.<br />
<span id="more-356"></span><br />
I had an strange error:</p>
<pre>prompt_jnrowe_precmd:3: command not found: zsh_path</pre>
<p>I solve it by these steps:</p>
<pre>
cd ~/bin # assume that your ~/bin exists and is in your $PATH
wget https://raw.githubusercontent.com/trapd00r/utils/master/zsh_path
chmod +x zsh_path
</pre>
<p>Then I got another error, saying something about a perl module called <a href="http://search.cpan.org/~woldrich/Term-ExtendedColor-0.224/lib/Term/ExtendedColor.pm" target="_blank">Term::ExtendedColor</a> not installed. So this is easy to fix too:</p>
<pre>
cd /tmp
wget http://search.cpan.org/CPAN/authors/id/W/WO/WOLDRICH/Term-ExtendedColor-0.224.tar.gz
tar xvzf Term-ExtendedColor*.tar.gz
cd Term-ExtendedColor*
perl Makefile.PL  # assuming you have perl-Makefile-Parser installed on your box
make
sudo make install
</pre>
<p>It worked out pretty well!</p>
<p><img decoding="async" src="http://luxing.im/wp-content/uploads/2014/04/20140414195458.png" alt="20140414195458" width="257" height="50" class="alignnone size-full wp-image-358" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/zsh-trapd00r-theme-fix/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">356</post-id>	</item>
	</channel>
</rss>
