<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=ZSH</id>
	<title>ZSH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=ZSH"/>
	<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=ZSH&amp;action=history"/>
	<updated>2026-04-08T16:08:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=ZSH&amp;diff=208&amp;oldid=prev</id>
		<title>Erik: Copy from old</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=ZSH&amp;diff=208&amp;oldid=prev"/>
		<updated>2009-06-06T23:41:54Z</updated>

		<summary type="html">&lt;p&gt;Copy from old&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Zsh is one of the most powerfull shells you can get on the face of the planet, and is my favorate ([[Sandman1]]) &lt;br /&gt;
&lt;br /&gt;
Now its easier to show you the wonders of zsh with my config below, just copy this and rename it to /.zshrc: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Copy what is in the box below&lt;br /&gt;
 &lt;br /&gt;
 zstyle ':completion:*' completer _complete _correct _approximate &lt;br /&gt;
 zstyle ':completion:*' max-errors 3 numeric &lt;br /&gt;
 zstyle ':completion:*' prompt '&amp;gt;' &lt;br /&gt;
 zstyle :compinstall filename '/home/$USER/.zshrc' &lt;br /&gt;
 autoload -U compinit &lt;br /&gt;
 compinit &lt;br /&gt;
 PS1=$'%{\e[01;32m%}%n@%m:%d%{\e[00m%}&amp;gt; ' &lt;br /&gt;
 autoload -U zfinit #This is for the built in ftp client &lt;br /&gt;
 EMAIL_ADDR=&amp;quot;Hi@hi.com&amp;quot; &lt;br /&gt;
 HISTSIZE=50000 &lt;br /&gt;
 HISTFILE=&amp;quot;$HOME/.zsh_history&amp;quot; &lt;br /&gt;
 SAVEHIST=50000 &lt;br /&gt;
 setopt APPEND_HISTORY &lt;br /&gt;
 setopt NO_BEEP &lt;br /&gt;
 setopt CD_ABLE_VARS &lt;br /&gt;
 setopt AUTO_CD &lt;br /&gt;
 setopt CORRECT &lt;br /&gt;
 setopt NO_HUP &lt;br /&gt;
 bindkey &amp;quot;\e[1&amp;quot; beginning-of-line &lt;br /&gt;
 bindkey &amp;quot;\e[H&amp;quot; beginning-of-line &lt;br /&gt;
 bindkey &amp;quot;\e[2&amp;quot; transpose-words &lt;br /&gt;
 bindkey &amp;quot;\e[3&amp;quot; delete-char &lt;br /&gt;
 bindkey &amp;quot;\e[4&amp;quot; end-of-line &lt;br /&gt;
 bindkey &amp;quot;\e[F&amp;quot; end-of-line &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now you paste this into /.zshrc and restart ZSH. Now you should have a green prompt color:) Now first type: &lt;br /&gt;
&lt;br /&gt;
 removepkg &amp;lt;tab&amp;gt; &lt;br /&gt;
&lt;br /&gt;
With this you will recieve a list of packages you can remove, how cool (might need to be root). Another cool thing about zsh is that you can used the &amp;quot;vared&amp;quot; tool to edit variables, example: &lt;br /&gt;
 &lt;br /&gt;
 vared PATH &lt;br /&gt;
&lt;br /&gt;
Now you can see the path variable and you can see that you can edit this and erase an error if you need to. Press enter when you are done editing it. Now speaking on variable editing, you can put variables into the buffer too: &lt;br /&gt;
&lt;br /&gt;
 print -z $PATH &lt;br /&gt;
&lt;br /&gt;
Another great feature that i use everyday is using M-q. (Alt-q basicly), For an example following the follow steps: &lt;br /&gt;
&lt;br /&gt;
type &amp;quot;Echo hi&amp;quot; (without quotes) &lt;br /&gt;
type Alt-q &lt;br /&gt;
type echo woot and press enter &lt;br /&gt;
see that the old command was back on the buffer, so you can execute commands before (incase you forgot somthing) &lt;br /&gt;
&lt;br /&gt;
Now this is using my config, there is a tool to configure the auto completion stuff so you might want to run these: &lt;br /&gt;
&lt;br /&gt;
 autoload -U compinit &amp;amp;&amp;amp; compinit -U &lt;br /&gt;
 compinstall &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now you will have questions to answer about the different tab completion modes. &lt;br /&gt;
 &lt;br /&gt;
Another cool Zsh thing is the tetris game that you can play! to get to tetris just follow these following steps: &lt;br /&gt;
&lt;br /&gt;
 autoload -U tetris &lt;br /&gt;
 tetris &lt;br /&gt;
hit the keys M-x and then type tetris and hit RET.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can do quick math problems on the fly&lt;br /&gt;
 print $(( 2 + 2 ))&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Erik</name></author>
	</entry>
</feed>