From 4c169eb65db9b1b1020c23f61b9492f3261740e3 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 8 Jun 2024 01:31:04 +0200 Subject: [PATCH] chore: maintain the kb a little --- knowledge base/chezmoi.md | 13 +++++---- knowledge base/motd.md | 59 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 6 deletions(-) create mode 100644 knowledge base/motd.md diff --git a/knowledge base/chezmoi.md b/knowledge base/chezmoi.md index 6f224ef..0acf49a 100644 --- a/knowledge base/chezmoi.md +++ b/knowledge base/chezmoi.md @@ -1,8 +1,6 @@ # Chezmoi -A multi-machine dotfile manager, written in Go. - -## Table of contents +Multi-machine dotfiles manager written in Go. 1. [TL;DR](#tldr) 1. [Save the current state to a remote repository](#save-the-current-state-to-a-remote-repository) @@ -14,11 +12,11 @@ A multi-machine dotfile manager, written in Go. ## TL;DR ```sh -# Install Chezmoi. +# Install. brew install 'chezmoi' sudo zypper install 'chezmoi' -# Initialize chezmoi. +# Initialize. chezmoi init chezmoi init 'https://github.com/username/dotfiles.git' --branch 'chezmoi' @@ -82,7 +80,8 @@ $ ## Gotchas - templating uses the [Go text/template] library -- due to a feature of a library used by chezmoi, all custom variable names in the configuration file are converted to lowercase; see the [custom data fields appear as all lowercase strings] GitHub issue for more information. +- ~~Due to a feature of a library used by chezmoi, all custom variable names in the configuration file are converted to + lowercase; see the [custom data fields appear as all lowercase strings] GitHub issue for more information.~~ ```toml # configuration file @@ -95,6 +94,8 @@ $ map[awesomecustomfield:my Awesome custom Value chezmoi:… normallookingcustomfield:normalLookingValue] ``` + > Solved in [2376](https://github.com/twpayne/chezmoi/pull/2376/files). + ## Snippets ```go diff --git a/knowledge base/motd.md b/knowledge base/motd.md new file mode 100644 index 0000000..180052f --- /dev/null +++ b/knowledge base/motd.md @@ -0,0 +1,59 @@ +# Message Of The Day + +TODO + +File containing the message of the day in Unix-like operating systems. + +1. [TL;DR](#tldr) +1. [Further readings](#further-readings) + 1. [Sources](#sources) + +## TL;DR + + + + + + + +## Further readings + +### Sources + +- [freebsd's man page] + + + + + + + + +[freebsd's man page]: https://man.freebsd.org/cgi/man.cgi?motd