Open CaptainQuirk opened 3 years ago
Hi again !
Is it something you'd consider looking at ?
Thanks in advance !
Hey @rafi ! Do you think you could spare some time looking at this :pray: ?
Thanks !
Hi, hope it's still relevant. I merged your PR, regardless, it all comes down to the key binding command, and the sub-shell it spawns. You could try re-mapping it yourself, e.g.:
tmux bind-key b run-shell "tmux split-window -l 10 \"eval \"$(direnv export bash)\" && /path/to/plugin/pass/scripts/main.sh '#{pane_id}'\""
Hi !
I'm currently trying to have client related password stores and use direnv to achieve it in the shell (zsh). But if fails.
Environment
Prerequisites
.envrc
file in each folder<my-path>
is the absolute path to the folder)direnv allow
in each folder to validate both filestmux kill-server
Steps to reproduce
.envrc
file).envrc
file)Current behavior
The passwords from the first folder are shown while
$(pwd)
corresponds to the second folderExpected behavior
The passwords should be the ones of the second folder
Suggestion
This can be solved by adding
eval "$(direnv export bash)"
at the top of the plugin'sscripts/main.sh
file but I realize that it is quite specific. In any case, the existence of the direnv binary should be checked before doing anything.Would a simple hook system be a solution ?