mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 15:45:11 +01:00
docs: merge fish with bash/zsh
This commit is contained in:
parent
2229e1eece
commit
409b8245e6
1 changed files with 6 additions and 19 deletions
25
README.md
25
README.md
|
|
@ -16,32 +16,19 @@ Typed a wrong command? Pay Respects will try to correct your wrong console comma
|
||||||
Please follow the instruction for your shell:
|
Please follow the instruction for your shell:
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Bash / Zsh</summary>
|
<summary>Bash / Zsh / Fish</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)"
|
||||||
|
> 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
|
||||||
> eval "$(pay-respects bash --alias)"
|
> eval "$(pay-respects bash --alias)"
|
||||||
> eval "$(pay-respects zsh --alias)"
|
> eval "$(pay-respects zsh --alias)"
|
||||||
> ```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Fish</summary>
|
|
||||||
|
|
||||||
> 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
|
> pay-respects fish --alias | source
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
|
@ -50,17 +37,17 @@ Please follow the instruction for your shell:
|
||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
> Add the output of the following output to your configuration file:
|
> Add the following output to your configuration file:
|
||||||
> ```
|
> ```shell
|
||||||
> pay-respects nushell [--alias <alias>]
|
> pay-respects nushell [--alias <alias>]
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
> Or save it as a file:
|
> Or save it as a file:
|
||||||
> ```
|
> ```shell
|
||||||
> 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:
|
||||||
> ```
|
> ```shell
|
||||||
> source ~/.pay-respects.nu
|
> source ~/.pay-respects.nu
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue