Commit 1f428734 authored by nilsl's avatar nilsl
Browse files

add quality improvements

parent 0b2e9ca7
......@@ -11,6 +11,18 @@
class: center, middle
# Slides
<img src="images/slides_QR.png" width="50%">
<a> http://0x0.st/N0oX</a>
Download them from the link, then open `index.html` in your browser
---
class: center, middle
# Linux Toolbox
Nils Leuzinger
......@@ -202,6 +214,8 @@ Both redirect command output:
<img src="images/catpiperedirection.png" width="60%">
<p style="color: #BBBBBB;">(you're not supposed to pipe cat's output but no one cares)</p>
---
# Demo
......@@ -255,7 +269,7 @@ Bash is a different way of interacting with your system
Bash runs in your terminal.
Bash is a shell. there are others: Zsh, fish, Dash, csh
Bash is a shell. There are others: Zsh, fish, Dash, csh
Resources:
- our bash guide (https://thealternative.ch/guides/bash.php)
......@@ -393,7 +407,7 @@ and then let's us choose one of them.
echo "one,two,three" | rofi -sep ',' -dmenu
```
Rofi's dmenu mode on its own is not useful, but can serve as a powerful launcher
Rofi's dmenu mode on its own is not useful, but can serve as a powerful launcher
when combined with other commands:
```bash
......@@ -517,7 +531,7 @@ We can put multiple greps together to chain filters!
Hot tip: Put `alias grep='grep -P'` into `~/.bashrc`.
`-P` switches to "extended regular expressions".
`-P` switches to "Perl regular expressions".
Unfortunately, there are lots of regex standards with minor differences.
Stick with one and don't worry about it (until you do).
......@@ -530,7 +544,7 @@ https://www.rexegg.com/
Hot tip: Put `alias grep='grep -P'` into `~/.bashrc`.
`-P` switches to "extended regular expressions".
`-P` switches to "Perl regular expressions".
Unfortunately, there are lots of regex standards with minor differences.
Stick with one and don't worry about it (until you do).
......@@ -704,9 +718,7 @@ git stash
git pull
```
*Visit the git course next week!*
Also recommended: Git for ages 4 and up (video)
Recommended: Git for ages 4 and up (video)
---
......@@ -805,7 +817,7 @@ sleep 0.2
xdotool key ctrl+w
```
Of course you can bind this to a shortcut!
Of course you can bind this to a shortcut with **xbindkeys**!
```bash
"xdotool key F6; sleep 0.2; xdotool key ctrl+c; sleep 0.2; xdotool key ctrl+w"
F10
......@@ -862,14 +874,14 @@ class: center, middle
# Vim
The best editor since sliced bread.
The best invention since sliced bread. Observe:
Tree-based undo function with timetravelling!
Composable shortcut keys and modal editing!
Composable shortcuts and modal editing!
Tree-based undo with timetravelling!
Can edit files remotely via SSH!
Recursive keyboard macros!
Can edit remote files directly via SSH!
Takes weeks to learn!
29 years old!
30 years old!
<img src="images/vimlogo.png" width="40%">
......@@ -930,11 +942,13 @@ class: center, middle
**stow** lets you manage config files easily.
**ranger** is a console-based file manager.
**i3** is an alternative window manager.
**i3** is an alternative window manager. (<a href="https://events.thealternative.ch/e/window-manager-workshop">come to our workshop in 2 weeks</a>)
**Borg** is a great backup tool.
---
---
# On analysis paralysis
Having so many choices sometimes makes it hard to start.
......@@ -961,7 +975,7 @@ https://thealternative.ch
# Next up
Come to the Git talk on Monday, 17:15 (no need to register).
Come to the Bash talk on Thursday, 17:15 (<a href="https://events.thealternative.ch/e/the-alternative-bash-HS21">register</a>).
It would be great if you could fill out the feedback:
https://feedback.thealternative.ch/
......@@ -970,6 +984,16 @@ https://feedback.thealternative.ch/
---
# Bash Mnemonics
**echo** - gives back same thing, like an echo
**ls** - list
**pwd** - present working directory
**cd** - change directory
**rm** - remove
**cat** - con**cat**enate (originally mainly used to concatenate files)
---
# Unhelpful descriptions
......@@ -980,7 +1004,8 @@ https://feedback.thealternative.ch/
**screen** is **tmux** for boomers.
**Git** is just a bunch of **SVN**s.
**Vim** is to vigor as Tom is to Jerry.
**Emacs** is a popular alternative to GNU/Hurd.
**Emacs** is a popular alternative to GNU/Hurd.
**OpenRC** is **systemd** without features.
</textarea>
<script src="js/remark.min.js" type="text/javascript"></script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment