From 4b93aecf9917e3f6fd8f231a3ade6c77cfdcf675 Mon Sep 17 00:00:00 2001 From: iff Date: Mon, 18 Nov 2024 14:21:56 +0100 Subject: [PATCH] style: quoting folds, maybe looks better --- README.md | 133 +++++++++++++++++++++++++++--------------------------- 1 file changed, 67 insertions(+), 66 deletions(-) diff --git a/README.md b/README.md index ec15314..3661584 100644 --- a/README.md +++ b/README.md @@ -18,51 +18,51 @@ Please follow the instruction for your shell:
Base / Zsh -Manual aliasing: -``` shell -alias f="$(pay-respects bash)" -alias f="$(pay-respects zsh)" -``` +> Manual aliasing: +> ``` shell +> alias f="$(pay-respects bash)" +> alias f="$(pay-respects zsh)" +> ``` -Auto aliasing (optional custom alias can be added after `--alias argument`): -``` shell -eval "$(pay-respects bash --alias)" -eval "$(pay-respects zsh --alias)" -``` +> Auto aliasing (optional custom alias can be added after `--alias argument`): +> ``` shell +> eval "$(pay-respects bash --alias)" +> eval "$(pay-respects zsh --alias)" +> ```
Fish -Manual aliasing: -``` shell -alias f="$(pay-respects fish)" -``` +> Manual aliasing: +> ``` shell +> alias f="$(pay-respects fish)" +> ``` -Auto aliasing (optional custom alias can be added after `--alias argument`): -``` shell -pay-respects fish --alias | source -``` +> Auto aliasing (optional custom alias can be added after `--alias argument`): +> ``` shell +> pay-respects fish --alias | source +> ```
Nushell -Add the output of the following file to your configuration file: -``` -pay-respects nushell [--alias ] -``` +> Add the output of the following file to your configuration file: +> ``` +> pay-respects nushell [--alias ] +> ``` -Or save it as a file: -``` -pay-respects nushell [--alias ] | save -f ~/.pay-respects.nu -``` -and source from your config file: -``` -source ~/.pay-respects.nu -``` +> Or save it as a file: +> ``` +> pay-respects nushell [--alias ] | save -f ~/.pay-respects.nu +> ``` +> and source from your config file: +> ``` +> source ~/.pay-respects.nu +> ```
@@ -77,48 +77,49 @@ Install from your package manager if available:
Generic x86 Desktop Linux -1. Get the latest binary from [releases](https://github.com/iffse/pay-respects/releases). -```shell -curl -sL -o pay-respects.zip \ -$(curl -s https://api.github.com/repos/iffse/pay-respects/releases/latest \ -| sed 's/[()",{}]/ /g; s/ /\n/g' \ -| grep "https.*pay-respects-ubuntu-latest.zip") -``` +> 1. Get the latest binary from [releases](https://github.com/iffse/pay-respects/releases). +> ```shell +> curl -sL -o pay-respects.zip \ +> $(curl -s https://api.github.com/repos/iffse/pay-respects/releases/latest \ +> | sed 's/[()",{}]/ /g; s/ /\n/g' \ +> | grep "https.*pay-respects-ubuntu-latest.zip") +> ``` +> +> 2. Extract zip, e.g. one of the following: +> ```shell +> 7z -x pay-respects.zip +> unzip pay-respects.zip +> ``` +> +> 3. System-wide installation: +> ```shell +> sudo chmod a+x pay-respects +> sudo mv pay-respects /usr/local/bin/pay-respects +> ``` +> +> 4. Delete the downloaded package: +> ```shell +> rm pay-respects.zip +> ``` -2. Extract zip, e.g. one of the following: -```shell -7z -x pay-respects.zip -unzip pay-respects.zip -``` - -3. System-wide installation: -```shell -sudo chmod a+x pay-respects -sudo mv pay-respects /usr/local/bin/pay-respects -``` - -4. Delete the downloaded package: -```shell -rm pay-respects.zip -```
Compile from source (any OS/architecture) -This installation requires you to have Cargo (the Rust package manager) installed. - -Install from [crates.io](https://crates.io/), `runtime-rules` is optional: -```shell -cargo install pay-respects --features=runtime-rules -``` - -Clone from git and install, suitable for adding custom compile-time rules: -``` -git clone --depth 1 https://github.com/iffse/pay-respects -cd pay-respects -cargo install --path . -``` +> This installation requires you to have Cargo (the Rust package manager) installed. +> +> Install from [crates.io](https://crates.io/), `runtime-rules` is optional: +> ```shell +> cargo install pay-respects --features=runtime-rules +> ``` +> +> Clone from git and install, suitable for adding custom compile-time rules: +> ``` +> git clone --depth 1 https://github.com/iffse/pay-respects +> cd pay-respects +> cargo install --path . +> ```