mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2024-12-22 02:40:16 +02:00
FIX: Compatibility with macOS/FreeBSD (#82)
Removed use of `sed` due to its behavior differing between GNU Coreutils and FreeBSD.
This commit is contained in:
parent
f542734c08
commit
84bb32a403
@ -71,7 +71,7 @@ Move sub/.autoenv.zsh away, now the root .autoenv.zsh file should get sourced.
|
||||
Prepend call to autoenv_source_parent to sub/.autoenv.zsh file.
|
||||
|
||||
$ cd ..
|
||||
$ sed -i -e "1s/^/echo autoenv_source_parent_from_sub:\nautoenv_source_parent\n/" .autoenv.zsh
|
||||
$ echo -e "echo autoenv_source_parent_from_sub:\nautoenv_source_parent\n$(cat .autoenv.zsh)" >| .autoenv.zsh
|
||||
$ echo "echo done_sub" >> .autoenv.zsh
|
||||
$ touch -t 201401010103 .autoenv.zsh
|
||||
$ test_autoenv_auth_env_files
|
||||
|
Loading…
Reference in New Issue
Block a user