Skip to content

Conversation

@little-engineer-2025
Copy link

direnv uses PROMPT_COMMAND variable too, but it uses the approach proposed on this change, so instead of set the value, add the call to the function, and current values are not lost.

In this way silver and direnv can coexist with no interference between them.

see: https://github.com/direnv/direnv/blob/df4c8ec7d45ef7e3290ab1c02ddd1fde1e3bcded/internal/cmd/shell_bash.go#L18

direnv uses PROMPT_COMMAND variable too, but it uses
the approach proposed on this change, so instead of
set the value, add the call to the function, and
current values are not lost.

In this way silver and direnv can coexist with no
interference between them.

see: https://github.com/direnv/direnv/blob/df4c8ec7d45ef7e3290ab1c02ddd1fde1e3bcded/internal/cmd/shell_bash.go#L18

Signed-off-by: Alejandro Visiedo <alejandro.visiedo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants