mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 07:35:10 +01:00
docs: arbitrary shell
This commit is contained in:
parent
5c8fa52a32
commit
67fafd4878
1 changed files with 17 additions and 0 deletions
17
README.md
17
README.md
|
|
@ -53,6 +53,23 @@ Please follow the instruction for your shell:
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Custom initialization for arbitrary shell</summary>
|
||||||
|
|
||||||
|
> pay-respects only requires 2 environment variables to function:
|
||||||
|
>
|
||||||
|
> - `_PR_SHELL`: The binary name of the current working shell.
|
||||||
|
> - `_PR_LAST_COMMAND`: The last command.
|
||||||
|
>
|
||||||
|
> pay-respects echos back, if applicable, a `cd` command that can be evaluated by the current working shell.
|
||||||
|
>
|
||||||
|
> General example:
|
||||||
|
> ```shell
|
||||||
|
> eval $(_PR_SHELL=sh _PR_LAST_COMMAND="git comit" pay-respects)
|
||||||
|
> ```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
You can now **press `F` to Pay Respects**!
|
You can now **press `F` to Pay Respects**!
|
||||||
|
|
||||||
## Installing
|
## Installing
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue