cheatsheets/_output/zsh.html

37 lines
1009 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title></title>
<link href="style.css" rel="stylesheet" />
</head>
<body>
<h1>ZSH</h1>
<h3>Stuff</h3>
<pre><code>!! Last command (sudo !!)
!* Last command's parameters (vim !*)
!^ Last command's first parameter
!$ Last command's last parameter
!?ls&lt;tab&gt; Command and params of last `ls` command (sudo !?mv&lt;tab&gt;)
!?ls?:*&lt;tab&gt; Params of last `ls` command
*(m0) Last modified today
*(m-4) Last modified &lt;4 days ago
</code></pre>
<h3>Change default shell</h3>
<pre><code>chsh -s `which zsh`
</code></pre>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.4/jquery.min.js'></script>
<script src="http://cachedcommons.org/cache/prettify/1.0.0/javascripts/prettify-min.js"></script>
<script>$("pre").addClass("prettyprint");</script>
<script>prettyPrint();</script>
</body>
</html>