Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotenv plugin: agree once improvement #8729

Merged
merged 8 commits into from
Mar 23, 2020
Prev Previous commit
Resolve symlinks in $PWD before storing in allowed list
  • Loading branch information
mcornella committed Mar 23, 2020
commit 0b083917d19b43af745cf955799dd9e20d5b1458
2 changes: 1 addition & 1 deletion plugins/dotenv/dotenv.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
source_env() {
if [[ -f $ZSH_DOTENV_FILE ]]; then
if [[ "$ZSH_DOTENV_PROMPT" != false ]]; then
local confirmation dirpath="$PWD"
local confirmation dirpath="${PWD:A}"

# make sure there is an allowed file
touch "$ZSH_DOTENV_ALLOWED_LIST"
Expand Down