+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+diff --git a/cheatsheet/index.html b/cheatsheet/index.html index 99cdf59..537eec1 100644 --- a/cheatsheet/index.html +++ b/cheatsheet/index.html @@ -75,7 +75,7 @@
@@ -103,8 +105,10 @@ diff --git a/cheatsheet/index.xml b/cheatsheet/index.xml index 2612387..1b29eba 100644 --- a/cheatsheet/index.xml +++ b/cheatsheet/index.xml @@ -26,8 +26,8 @@fc
is a shell builtin to list and edit previous commands in an editor.
+In addition to editing a single line (which you can also do with C-x C-e
), it also allows you to edit and run several lines at the same time.
+You use it like this:
List previous commands
+ +$ fc -l
+10259 nvim deploy.sh
+10260* cd ..
+10261* nvim content/cheatsheet/linux.md
+10262 cd
+
+
+List commands with date (in zsh)
+ +$ fc -ld
+10260* 19:38 cd ..
+10261* 19:38 nvim content/cheatsheet/linux.md
+10262 19:40 cd
+10263 19:40 fc -l
+
+
+You can add the date too:
+ +$ fc -fld
+10262 1/10/2019 19:40 cd
+10263 1/10/2019 19:40 fc -l
+10264 1/10/2019 19:40 fc -ld
+
+
+You can edit a range of commands
+ +$ fc 10262 10264
+
+
+The range can be relative to the current position, so the previous command is equivalent to:
+ +$ fc -3 -1
+
+
+If you save and exit, all commands are executed as a script, and it will be added to your history.
+ +Source: https://shapeshed.com/unix-fc/
+ @@ -72,6 +118,7 @@ logind-check-graphical=true diff --git a/css/main.css b/css/main.css index b8d7d82..7c2afb6 100755 --- a/css/main.css +++ b/css/main.css @@ -74,7 +74,14 @@ body { @media (max-width: 700px) { #sidebar { - display: none; + display: inline-block; + float: left; + } + #sidebar > * { + display: none; + } + #sidebar > .toc { + display: block; } } @media (min-width: 700px) { @@ -236,8 +243,13 @@ body { } .toc { - position: fixed; - height: 100%; + padding: 1em; + position: fixed; + border-color: black; + border: 1px solid; + background-color: white; + height: max-content; + z-index: 1; } } diff --git a/index.xml b/index.xml index 7613aa3..b19897a 100644 --- a/index.xml +++ b/index.xml @@ -162,8 +162,8 @@ a WSGI application with the name <em>application</em>. Hence, wsgi:a