From 27692b06cb8822b08e8f9865899cf6994de4f0b8 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 6 Nov 2024 00:17:01 +0000 Subject: [PATCH] Update cheatsheets --- tldr/ghcid | 34 ++++++++++++++++++++++++++++++++++ tldr/linux/findmnt | 4 ++++ tldr/windows/findstr | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 tldr/ghcid diff --git a/tldr/ghcid b/tldr/ghcid new file mode 100644 index 00000000..8eff37dc --- /dev/null +++ b/tldr/ghcid @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ghcid + +> Simple and efficient CLI IDE for Haskell that reloads code on file changes. +> Continuously displays compile errors, warnings, and test results. +> More information: . + +- Start `ghcid` and monitor a Haskell file for changes: + +`ghcid {{path/to/Main.hs}}` + +- Start `ghcid` with a specific command, such as loading a Stack or Cabal project: + +`ghcid --command "{{stack ghci Main.hs}}"` + +- Run an action (default `main`) on each file save: + +`ghcid --run={{action}} {{path/to/Main.hs}}` + +- Set maximum height and width (default to console height and width): + +`ghcid --height={{height}} --width={{width}} {{path/to/Main.hs}}` + +- Write full GHC compiler output to a file: + +`ghcid --outputfile={{path/to/output_file.txt}} {{path/to/Main.hs}}` + +- Execute REPL commands (eg. `-- $> 1+1`) on each file save: + +`ghcid --allow-eval {{path/to/Main.hs}}` diff --git a/tldr/linux/findmnt b/tldr/linux/findmnt index e7589905..a34c99e7 100644 --- a/tldr/linux/findmnt +++ b/tldr/linux/findmnt @@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Find filesystems with specific label: `findmnt LABEL={{BigStorage}}` + +- Check mount table content in detail and verify `/etc/fstab`: + +`findmnt --verify --verbose` diff --git a/tldr/windows/findstr b/tldr/windows/findstr index 02f8fa52..54f3542b 100644 --- a/tldr/windows/findstr +++ b/tldr/windows/findstr @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Find strings using a case-insensitive search: -`findstr /i "{{string1 string2 ...}}" *"` +`findstr /i "{{string1 string2 ...}}" *` - Find strings in all files using regular expressions: