mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-05-12 19:13:59 +08:00
Keep the original shellHook if it is set
This commit is contained in:
parent
a0e8ec2e2b
commit
40f42e95b6
1 changed files with 2 additions and 0 deletions
|
|
@ -27,4 +27,6 @@ sopsPGPHook() {
|
||||||
|
|
||||||
if [ -z "${shellHook-}" ]; then
|
if [ -z "${shellHook-}" ]; then
|
||||||
shellHook=sopsPGPHook
|
shellHook=sopsPGPHook
|
||||||
|
else
|
||||||
|
shellHook="sopsPGPHook;${shellHook}"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue