Commit 5bc7820e authored by Tomáš Hübelbauer's avatar Tomáš Hübelbauer

Merge in unix-links

parent b792553e
......@@ -31,6 +31,49 @@ sudo apt-get dist-upgrade
See [Secret Management](https://bloggo.herokuapp.com/secret-management).
## [A minimalist guide to tmux](https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa) by [Peter Jang](https://medium.com/@peterxjang)
`tmux`
- `Ctrl+b` + `c`: Create a new window (appears in status bar)
- `Ctrl+b` + `#`: Switch to window # (0-N)
- `Ctrl+b` + `x`: Kill current window
- `Ctrl+b` + `d`: Detach tmux (exit back to normal terminal)
`Ctrl+b` is a *prefix*. Let go of it before pressing the command key.
```sh
tmux ls # List all sessions
tmux a # Attach last used session
tmux a -t <session-name>
```
There is also a `tmux.conf` file.
## [Moving efficiently in the CLI](https://clementc.github.io/blog/2018/01/25/moving_cli/) by [Clément Chastagnol](https://clementc.github.io/pages/about.html)
- [Unicode Box Drawing](http://jrgraphix.net/r/Unicode/2500-257F)
- [Unicode Arrows](https://unicode-table.com/en/sets/arrows-symbols/)
```
← Ctrl+A Ctrl+E → ┓
┌────────────┬────────────────┐ ┃
│ ← Alt+B │ Alt+F → │ ┃ Moving
│ ┌─────────┼─────────┐ │ ┃
│ │ Ctrl+B ┌┼┐ Ctrl+F │ │ ┃
↓ ↓ ↓│↓ ↓ ↓ ┛
$ cp everything-everything music/
↑ └─────────┼──────────┘ ↑ ┓
│ ← Ctrl+W │ Alt+D → │ ┃ Erasing
└────────────┴────────────────┘ ┃
← Ctrl+D Ctrl+K → ┛
```
Everything but `Ctrl+D` works on WSL.
Additionally, `Ctrl+→` and `Ctrl+←` works there as expected.
`Home` and `End` to as well.
`Esc+Backspace` removes one word back.
## Default tools in `bin`
Based on https://partner-images.canonical.com/core/xenial/current/
......
Markdown is supported
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