mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 15:45:11 +01:00
style: quoting folds, maybe looks better
This commit is contained in:
parent
9a8bebdb86
commit
4b93aecf99
1 changed files with 67 additions and 66 deletions
133
README.md
133
README.md
|
|
@ -18,51 +18,51 @@ Please follow the instruction for your shell:
|
||||||
<details>
|
<details>
|
||||||
<summary>Base / Zsh</summary>
|
<summary>Base / Zsh</summary>
|
||||||
|
|
||||||
Manual aliasing:
|
> Manual aliasing:
|
||||||
``` shell
|
> ``` shell
|
||||||
alias f="$(pay-respects bash)"
|
> alias f="$(pay-respects bash)"
|
||||||
alias f="$(pay-respects zsh)"
|
> alias f="$(pay-respects zsh)"
|
||||||
```
|
> ```
|
||||||
|
|
||||||
Auto aliasing (optional custom alias can be added after `--alias argument`):
|
> Auto aliasing (optional custom alias can be added after `--alias argument`):
|
||||||
``` shell
|
> ``` shell
|
||||||
eval "$(pay-respects bash --alias)"
|
> eval "$(pay-respects bash --alias)"
|
||||||
eval "$(pay-respects zsh --alias)"
|
> eval "$(pay-respects zsh --alias)"
|
||||||
```
|
> ```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Fish</summary>
|
<summary>Fish</summary>
|
||||||
|
|
||||||
Manual aliasing:
|
> Manual aliasing:
|
||||||
``` shell
|
> ``` shell
|
||||||
alias f="$(pay-respects fish)"
|
> alias f="$(pay-respects fish)"
|
||||||
```
|
> ```
|
||||||
|
|
||||||
Auto aliasing (optional custom alias can be added after `--alias argument`):
|
> Auto aliasing (optional custom alias can be added after `--alias argument`):
|
||||||
``` shell
|
> ``` shell
|
||||||
pay-respects fish --alias | source
|
> pay-respects fish --alias | source
|
||||||
```
|
> ```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Add the output of the following file to your configuration file:
|
> Add the output of the following file to your configuration file:
|
||||||
```
|
> ```
|
||||||
pay-respects nushell [--alias <alias>]
|
> pay-respects nushell [--alias <alias>]
|
||||||
```
|
> ```
|
||||||
|
|
||||||
Or save it as a file:
|
> Or save it as a file:
|
||||||
```
|
> ```
|
||||||
pay-respects nushell [--alias <alias>] | save -f ~/.pay-respects.nu
|
> pay-respects nushell [--alias <alias>] | save -f ~/.pay-respects.nu
|
||||||
```
|
> ```
|
||||||
and source from your config file:
|
> and source from your config file:
|
||||||
```
|
> ```
|
||||||
source ~/.pay-respects.nu
|
> source ~/.pay-respects.nu
|
||||||
```
|
> ```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
@ -77,48 +77,49 @@ Install from your package manager if available:
|
||||||
<details>
|
<details>
|
||||||
<summary>Generic x86 Desktop Linux</summary>
|
<summary>Generic x86 Desktop Linux</summary>
|
||||||
|
|
||||||
1. Get the latest binary from [releases](https://github.com/iffse/pay-respects/releases).
|
> 1. Get the latest binary from [releases](https://github.com/iffse/pay-respects/releases).
|
||||||
```shell
|
> ```shell
|
||||||
curl -sL -o pay-respects.zip \
|
> curl -sL -o pay-respects.zip \
|
||||||
$(curl -s https://api.github.com/repos/iffse/pay-respects/releases/latest \
|
> $(curl -s https://api.github.com/repos/iffse/pay-respects/releases/latest \
|
||||||
| sed 's/[()",{}]/ /g; s/ /\n/g' \
|
> | sed 's/[()",{}]/ /g; s/ /\n/g' \
|
||||||
| grep "https.*pay-respects-ubuntu-latest.zip")
|
> | 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
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Compile from source (any OS/architecture)</summary>
|
<summary>Compile from source (any OS/architecture)</summary>
|
||||||
|
|
||||||
This installation requires you to have Cargo (the Rust package manager) installed.
|
> This installation requires you to have Cargo (the Rust package manager) installed.
|
||||||
|
>
|
||||||
Install from [crates.io](https://crates.io/), `runtime-rules` is optional:
|
> Install from [crates.io](https://crates.io/), `runtime-rules` is optional:
|
||||||
```shell
|
> ```shell
|
||||||
cargo install pay-respects --features=runtime-rules
|
> cargo install pay-respects --features=runtime-rules
|
||||||
```
|
> ```
|
||||||
|
>
|
||||||
Clone from git and install, suitable for adding custom compile-time rules:
|
> Clone from git and install, suitable for adding custom compile-time rules:
|
||||||
```
|
> ```
|
||||||
git clone --depth 1 https://github.com/iffse/pay-respects
|
> git clone --depth 1 https://github.com/iffse/pay-respects
|
||||||
cd pay-respects
|
> cd pay-respects
|
||||||
cargo install --path .
|
> cargo install --path .
|
||||||
```
|
> ```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue