Repository navigation
Expand file tree
/
Copy pathpresentation_1.tex
More file actions
347 lines (284 loc) · 8.85 KB
/
Copy pathpresentation_1.tex
File metadata and controls
347 lines (284 loc) · 8.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
\documentclass[aspectratio=43]{beamer}
\mode<presentation> {
\usetheme{m}
\setbeamertemplate{footline} % To remove the footer line in all slides uncomment this line
%\setbeamertemplate{footline}[page number] % To replace the footer line in all slides with a simple slide count uncomment this line
%\setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides uncomment this line
}
\usepackage{amsfonts,amsmath,amssymb,amsthm,mathtools}
\usepackage{color}
\usepackage{multicol}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage{adjustbox} % for \adjincludegraphics
\usepackage{array} % needed for \arraybackslash
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\title[Short title]{The Z Shell (zsh)}
\author{Marco Ferraioli}
\institute[IrLUG]
{
Linux Day Avellino\\
marcoferraioli@live.com\\
marcoferraioli.com\\
@overflowsystem
}
\date{24/10/2015} % can be changed to a custom date
\begin{document}
\begin{frame}
\titlepage % Print the title page as the first slide
\end{frame}
%------------------------------------------------
\begin{frame}
\centerline{The Z Shell (zsh) is cooler than your shell}
\end{frame}
%------------------------------------------------
%------------------------------------------------
\begin{frame}
\centerline{The Z Shell (zsh) is cooler than your shell}
\centerline{(unless your shell is zsh!)}
\end{frame}
%------------------------------------------------
%----------------------------------------------------------------------------------------
% PRESENTATION SLIDES
%----------------------------------------------------------------------------------------
%------------------------------------------------
\section{A brief history of shells}
%------------------------------------------------
\section{70's}
\begin{frame}
\Huge{\centerline{Thompson shell}}
\end{frame}
\begin{frame}
\frametitle{ 70's}
\begin{columns}[c]
\column{.40\textwidth} % Left column and width
\textbf{1971: Thompson shell}\pause
\begin{itemize}
\item Was written by\\
Ken Thompson\\
(A very Hacker!).\pause
\item Was the first Unix shell.\pause
\item Interactive interpreter.\pause
\item No scripting enviroment.\pause
\end{itemize}
\column{.4\textwidth}
\begin{figure}[h!]
\adjincludegraphics[width=1\linewidth,valign=t]{img/thompson01.jpg}
\end{figure}
\end{columns}
\end{frame}
\begin{frame}
\frametitle{ 70's}
\begin{columns}[c]
\column{.40\textwidth} % Left column and width
\textbf{1971: Thompson shell}
\begin{itemize}
\item Was written by\\
Ken Thompson\\
(A very Hacker!).
\item Was the first Unix shell.
\item Interactive interpreter.
\item No scripting enviroment.
\end{itemize}
\column{.4\textwidth}
\begin{figure}[h!]
\adjincludegraphics[width=1\linewidth,valign=t]{img/ken_den.jpg}
\end{figure}
\end{columns}
\end{frame}
%------------------------------------------------
\begin{frame}
\Huge{\centerline{Bourne shell}}
\end{frame}
\begin{frame}
\frametitle{ 70's}
\textbf{1977: Bourne shell}\pause
\begin{itemize}
\item Replacement for the Thompson shell.\pause
\item Default Unix shell of Unix Version 7.\pause
\item Most Unix-like systems continue to have /bin/sh.\pause
\item Scripting language.\pause
\item Symlink/Hard link compatible with other modern shells.
\end{itemize}
\end{frame}
%------------------------------------------------
\begin{frame}
\Huge{\centerline{C shell}}
\end{frame}
\begin{frame}
\frametitle{ 70's}
\textbf{1978: C shell}
\begin{itemize}
\item BSD Unix.\pause
\item Scripting syntax C-like.\pause
\item Command history.\pause
\item Aliasing.\pause
\item tcsh - newer C shell, default on FreeBSD and based distros.\pause
\begin{itemize}
\item On OS-X systems 10.0 - 10.2
\end{itemize}
\end{itemize}
\end{frame}
%------------------------------------------------
\section{80's}
\begin{frame}
\Huge{\centerline{Korn shell}}
\end{frame}
\begin{frame}
\frametitle{ 80's}
\textbf{1983: Korn shell}\pause
\begin{itemize}
\item Developed at Bell Labs.\pause
\item Proprietary until 2000.\pause
\item Lots of C shell features.\pause
\item Default on OpenBSD.
\end{itemize}
\end{frame}
%------------------------------------------------
\begin{frame}
\Huge{\centerline{1989: Bourne Again shell A.K.A. bash}}
\end{frame}
\begin{frame}
\frametitle{ 80's}
\begin{columns}[c]
\column{.45\textwidth} % Left column and width
\textbf{1989: Bourne Again shell A.K.A. bash}\pause
\begin{itemize}
\item GNU, GPL.\pause
\item First Free shell (/bin/sh compatible).\pause
\item Standard shell for Linux distros, Mac OS X 10.3+\pause
\item TAB completion.\pause
\item Extended scripting syntax.\pause
\end{itemize}
\column{.3\textwidth}
\begin{figure}[h!]
\includegraphics[scale=0.23]{img/Heckert_GNU_white.png}
\end{figure}
\end{columns}
\end{frame}
\begin{frame}
\frametitle{ 80's}
\begin{columns}[c]
\column{.45\textwidth} % Left column and width
\textbf{1989: Bourne Again shell A.K.A. bash}
\begin{itemize}
\item GNU, GPL.
\item First Free shell (/bin/sh compatible).
\item Standard shell for Linux distros, Mac OS X 10.3+\
\item TAB completion.
\item Extended scripting syntax.
\end{itemize}
\column{.3\textwidth}
\begin{figure}[h!]
\includegraphics[scale=0.43]{img/saintignucius.jpg}
\end{figure}
\end{columns}
\end{frame}
%------------------------------------------------
\section{90's}
\begin{frame}
\Huge{\centerline{1990: Z shell A.K.A. zsh}}
\end{frame}
\begin{frame}
\frametitle{ 90's}
\textbf{1990: Z shell A.K.A. zsh}\pause
\begin{itemize}
\item /bin/bash compatibility, drop-in replacement for Bash.\pause
\item Most closely resembles Korn shell.\pause
\item "new" (despite being over 20 years old).\pause
\item The awesome stuff we'll talk about now.\pause
\end{itemize}
\end{frame}
%------------------------------------------------
\section{Why use zsh?}
\begin{frame}
\Huge{\centerline{First, a reason that's impossible...}}
\end{frame}
\begin{frame}
\Huge{\centerline{If you're using Mac OS X...}}
\end{frame}
\begin{frame}
\Huge{\centerline{...your Bash is \textit{old!}}}
\begin{figure}[h!]
\adjincludegraphics[width=0.8\linewidth,valign=t]{img/mac.jpeg}
\end{figure}
\end{frame}
\begin{frame}
\Huge{\centerline{zsh vs bash}}
\end{frame}
\begin{frame}
\frametitle{ The fight!}
\textbf{zsh vs bash}\pause
\begin{itemize}
\item autocomplete\pause
\begin{itemize}
\item cd\pause
\item git\pause
\item and other..\pause
\end{itemize}
\item path expansion\pause
\item path replacement\pause
\item string replacement\pause
\item spelling correction\pause
\item aliases\pause
\item programmable file renaming
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{ The fight!}
\textbf{zsh vs bash (2)}\pause
\begin{itemize}
\item right prompt\pause
\item impoved history\pause
\item shared history between shells\pause
\item plugin
\end{itemize}
\end{frame}
\section{The Frameworks}
\begin{frame}
\frametitle{ The Frameworks!}
\textbf{Just a little list}\pause
\begin{itemize}
\item alf\pause
\item dotzsh\pause
\item \huge{oh my zsh}
\end{itemize}
\end{frame}
\section{Oh My zsh}
\begin{frame}
\frametitle{ Oh My zsh}
\textbf{What is?}\pause
\begin{itemize}
\item Community-driven framework for managing your zsh configuration\pause
\item Includes 200+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, etc)\pause
\item Over 140 themes to spice up your morning\pause
\item Auto-update tool so that makes it easy to keep up with the latest updates from the community.\pause
\item http://ohmyz.sh/ or https://github.com/robbyrussell/oh-my-zsh
\end{itemize}
\end{frame}
\section{Install zsh and oh my zsh}
\begin{frame}
\frametitle{ Install zsh and oh my zsh}
\textbf{How?}\pause
\begin{itemize}
\item Open Termianl\pause
\item Install zsh with your package manager (apt-get, pacman, yum, homebrew)\pause
\item zsh
\item sudo chsh -s /bin/zsh user (This certainly works on Fedora/Debian/OpenSuse)\pause
\item For install oh my zsh see the readme.md at: https://github.com/robbyrussell/oh-my-zsh it's very easy\pause
\item Now you will need to edit the .zshrc file in your home.
\end{itemize}
\end{frame}
%------------------------------------------------
\begin{frame}
\centerline{Material:}
\centerline{https://github.com/paranoiasystem/LinuxDay2015}
\end{frame}
\begin{frame}
\Huge{\centerline{The End, Question?}}
\end{frame}
%------------------------------------------------
\end{document}
\grid