1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2025-12-14 02:15:11 +02:00

Handle setopt shwordsplit (#89)

This uses `emulate -L zsh` (as a more broad approach to `setopt
localtoptions noshwordsplit`, or quoting things) in the entry points to
zsh-autoenv.

Fixes https://github.com/Tarrasch/zsh-autoenv/issues/75
This commit is contained in:
Daniel Hahler
2017-12-16 01:09:41 +01:00
committed by GitHub
parent 0bb85014e6
commit 2c8cfbcea8
5 changed files with 25 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ fi
# Add file ($1), version ($2), and optional hash ($3) to authentication file.
test_autoenv_add_to_env() {
emulate -L zsh
[[ -d ${AUTOENV_AUTH_FILE:h} ]] || mkdir -p ${AUTOENV_AUTH_FILE:h}
_autoenv_deauthorize $1
{