mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
feat(dotenv): add named pipe (FIFO) support
1Password Environments and similar secret managers mount `.env` files as UNIX named pipes (FIFOs) instead of regular files. The `source_env` function previously only checked for regular files (`-f`), causing it to silently skip FIFO-backed `.env` files. Adding a `-p` check allows the plugin to also source named pipes.
This commit is contained in:
parent
88659ed193
commit
4b4641c390
2 changed files with 9 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
|||
## Functions
|
||||
|
||||
source_env() {
|
||||
if [[ ! -f "$ZSH_DOTENV_FILE" ]]; then
|
||||
if [[ ! -f "$ZSH_DOTENV_FILE" ]] && [[ ! -p "$ZSH_DOTENV_FILE" ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue