1 \documentclass[8pt, % 8pt
7 headsepline, % Trennlinie oben
8 footsepline, % -""- unten
9 smallheadings, % Kleine Überschriften
10 % pointlessnumbers,% Keine Punkte
11 halfparskip, % Halbe Zeile Absatz statt Einzug
12 nochapterprefix, % Kein "Kapitel"
13 % bibtotoc % "Literatur" im TOC oder
14 % bibtotocnumbered,% -""-, nummeriert
15 % idxtotoc, % Index im TOC
19 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
21 \usepackage[latin1]{inputenc} % ISO-Umlaute
22 \usepackage[T1]{fontenc} % T1-kodierte Fonts
23 \usepackage{ae,aecompl} % Kodierung für PDF
24 %\usepackage{ngerman} % Deutsche Trennungen,
26 \usepackage{setspace} % Single- oder Onehalfspacing
27 %\setcounter{tocdepth}{4} % 4 Hirarchien im Inhaltsv.
28 \usepackage{times} % Times als Schrift
29 \usepackage{amsmath,amssymb,amstext}% Mathematische Symbole
30 \usepackage{url} % Darstellung von URLs
33 %%% Optional, je nach Dokument
34 % \usepackage{listings} % Quelltext-Listings
35 % \usepackage{units} % Technische Units
36 % \usepackage{psfrag} % Ersetzts PS-Schriften
37 % \usepackage{color} % Farben in LaTeX
38 % \usepackage{floatflt} % Textumflossene Bilder...
39 % \usepackage{picins} % Textumflossene Bilder
40 % \usepackage{textcomp} % Spezielle Zeichen
41 % \usepackage[small,compact]{titlesec} % Überschriften mit wenig Platz
42 % \usepackage{gensymb} % Spezielle Zeichen
43 % \usepackage{eurosym} % Euro-Symbol
46 \usepackage{scrpage2} % KOMA-Überschriften und -Fußzeilen.
48 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
50 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53 \ifx\pdfoutput\undefined
61 \usepackage[pdftex]{graphicx}
62 \DeclareGraphicsExtensions{.pdf}
72 bookmarksnumbered=false,
76 \usepackage[dvips]{graphicx}
77 \DeclareGraphicsExtensions{.eps}
85 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
87 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
88 %%% Eigene Funktionen {{{
89 %%% Beispiel: \bild{200pt}{foo}{That's a foo\ldots}
90 \newcommand{\bild}[3]{
92 \includegraphics[width=#1, keepaspectratio=true]{#2}
98 \newcommand{\kbd}[1]{\texttt{#1}}
99 \newcommand{\commandlistbegin}{
103 \newcommand{\commandlistend}{
106 \newcommand{\command}[2]{
107 \texttt{#1} & \quad #2 \\
111 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
113 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
115 \pagestyle{scrheadings}
116 % \pagestyle{fancyhdrs}
119 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
121 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
122 %%% Seitenkopf- und -Fußzeilen {{{
123 \automark[subsection*]{section} % \left- und \rightmark bekommen Inhalt
124 %%% Oben: Links, Mitte, Rechts
125 \ihead[]{{\Huge GRML-Zsh-Refcard}}
127 \ohead[]{Generated: \today}
128 %%% Unten: Links, Mitte, Rechts
129 \ifoot[]{\vspace{-3pt}GRML-Zsh-Refcard}
131 \ofoot[]{\vspace{-3pt}\copyright 2005-2008 \href{mailto:julius@grml.org}{Julius Plenz},
132 \href{mailto:mika@grml.org}{Michael Prokop} and
133 \href{mailto:ft@grml.org}{Frank Terbeck}}
135 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
137 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
139 % \setlength{\parindent}{17pt} % Einzug 17pt,
140 % \setlength{\parskip}{2pt} % keine Leerzeilen.
142 % \textwidth 127mm % Textbreite
143 % \textheight 235mm % Texthöhe
144 % \topmargin -5mm % Abstand oben
145 % \oddsidemargin 7mm % Abstand Links, onepage
147 %\onehalfspacing % Zeilenabstand: Bei korrektur,
148 \singlespacing % bei Abgabe
150 % Punkt- und Komma Abstände bei Tausendern/
151 % Dezimalzahlen ans deutsche anpassen!
155 \setlength{\emergencystretch}{2em} % Notfallsstreckung
157 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
159 \addtolength{\voffset}{10pt}
160 \renewcommand{\figurename}{Abb.}
163 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
165 %\pagenumbering{none} % Für die Titelseite: Keine Seitennummern,
166 %\thispagestyle{empty} % keine Kopf- und Fußzeilen.
174 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
176 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
177 %%% Inhaltsverzeichnis {{{
178 \pagenumbering{arabic} % Arabische Nummerierung
179 % \pagenumbering{roman} % Kleine, römische Nummerierung
180 % \tableofcontents % Das Inhaltsverzeichnis
181 % \listoffigures % Verzeichnis aller Abbildungen
182 % \listoftables % Verzeichnis aller Tabellen
183 % \pagenumbering{arabic} % ...und wieder Arabisch
186 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
188 % we won't be using math mode much, so redefine some of the characters
189 % we might want to talk about
198 \setlength{\tabcolsep}{0pt}
200 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
204 %\section{GRML's Zsh-Setup Reference Card}
206 \subsection*{Configuration files}
208 \small{The global zsh configuration is located in \textbf{/etc/zsh/zshrc}. User
209 specific settings are defined in \textbf{/etc/skel/.zshrc} (which can be found
210 in \kbd{\~}/.zshrc of the user grml, as well). Please note that some
211 functions/aliases are not active by default for user root (referred to as
212 '... for user (grml)' below) for of security reasons. Simply run 'zshskel'
213 (as root) to source /etc/skel/.zshrc. Some aliases/functions are not activated
214 if the appropriate executable isn't present on your system, either.
216 /etc/zsh/zshrc: this file can be adjusted according to your needs via a file
217 named /etc/zsh/zshrc.local, which is not under the control of Debian package
218 management. This, you need to place all your changes in the file
219 /etc/zsh/zshrc.local. If you do not have write permission to
220 /etc/zsh/zshrc, copy the file /etc/zsh/zshrc to \kbd{\~}/.zshrc.global
221 and it will be sourced by \kbd{\~}/.zshrc.
223 Put important commands which you need on a regular basis into a file named
224 \textbf{\kbd{\~}/.important\_commands}.
226 Note that /etc/skel/.zshrc itself is not sourced by zsh, but copied to the
227 \$HOME-directory of your non-root user on user creation. To keep your
228 \textbf{\kbd{\~}/.zshrc} in sync with upstream's development, just put your
229 personal stuff into a file named \textbf{\kbd{\~}/.zshrc.local} and point your
230 \kbd{\~}/.zshrc to /etc/skel/.zshrc by running 'ln -s /etc/skel/.zshrc
233 More information regarding configuration files and some environment
234 variables to adjust runtime behaviour of grml's zsh can be accessed by
235 running \textbf{zsh-help}.
237 \subsection*{Using grml's zsh configuration on a non-grml system}
239 You do not have to use grml/Debian to use grml's zsh configuration.
240 Just retrieve and install the configuration files in your home directory.
241 You can do this by running:
245 wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/skel/.zshrc
246 wget -O .zshrc.global http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
250 \subsection*{Problems?}
252 Please report any problems you encounter while using the grml zsh
253 configuration to the grml team. The configuration has been tested on several
254 Linux distributions (Debian, Gentoo, SuSE, etc) and non-Linux systems as well
255 (FreeBSD, Solaris, AIX, etc), but there might be issues, anyway.
256 \href{http://grml.org/bugs/}{Report them, please!}
258 \subsection*{Settings}
260 If not already defined, these variables are set to the following
268 \command{umask @@INSERT-other-umask@@}{new files automatically get permissions \kbd{@@INSERT-other-umaskstr@@}}
269 \command{umask @@INSERT-other-r_umask@@}{new files for root user \kbd{@@INSERT-other-r_umaskstr@@}}
272 \subsection*{Key-bindings}
274 Default keybinding mode is Emacs, i.e. you can use Emacs keybinds like
275 \kbd{^A {\rm or} ^E} on the command line. However, you can switch to vi
279 \command{setopt emacs}{Switch to Emacs mode (default)}
280 \command{setopt vi}{Switch to vi mode}
284 The following documents some important keybindings which are not
285 defined in zsh's default configuration. Hint: press <tab> twice when completing
286 a command you installed which is not yet known to zsh or run 'rehash' manually.
289 @@INSERT-keybindings@@
294 \subsection*{Terminal Settings}
296 There are 8 aliases designed to change the font size of terminal
297 emulators (XTerm, Aterm, etc). They are:
310 Directory hashes are shortcuts for common directories. You can
311 expand them by typing \kbd{\~{}hash}. Usage: 'cd \kbd{\~}doc'
314 @@INSERT-hasheddirs@@
317 \subsection*{System-Wide Aliases}
320 @@INSERT-aliases-system@@
323 \subsection*{Global Functions}
326 @@INSERT-functions-system@@
327 @@INSERT-functions-services@@
331 \subsection*{Debian commands}
333 Please note: if not executed as root, these aliases try to run the command via sudo.
336 @@INSERT-aliases-debian@@
337 @@INSERT-functions-debian@@
340 \subsection*{Aliases for user (grml)}
343 @@INSERT-aliases-user@@
346 \subsection*{Abbreviation expansion for user (grml)}
348 As of version 0.9, grml does not enable global aliases anymore. Instead, a
349 feature similiar to vim's 'iab' was added. The default key-sequence to trigger
350 the expansion is ',.'.
355 \kbd{co}\begin{Huge},.\end{Huge} \quad expands to: \kbd{./configure \&\& make \&\& sudo make install}
358 The configuration of this feature and its implementation are described on the zsh wiki
359 <\url{http://zshwiki.org/home/examples/zleiab}>.
363 %\vspace{35pt} % temporary hack for alignment of columns/rows
367 Most of the normal aliases are also added to this database, so you may expand them
372 \subsection*{Functions for user (grml)}
377 @@INSERT-functions-search@@
384 @@INSERT-functions-shortcuts@@
387 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
388 % Dieser Trenner muss eingefügt werden, wenn eine Tabelle zu lang ist
389 % und daher nicht von LaTeX umbrochen wird.
393 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
397 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
399 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
400 %%% Bibliographieverzeichnis {{{
403 %\bibliographystyle{plaindin}
404 %\bibliography{quellen}
406 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
410 %%% vim:set ai tw=80 fdm=marker: EOF