1 $ source $TESTDIR/setup.zsh || return 1
8 No .autoenv.zsh file found (enter).
9 No .autoenv_leave.zsh file found (leave).
14 No .autoenv_leave.zsh file found (leave).
15 Editing .autoenv.zsh..
18 $ AUTOENV_FILE_LEAVE=$AUTOENV_FILE_ENTER
20 Editing .autoenv.zsh..
26 Editing ../.autoenv.zsh..
29 Supports command with args for EDITOR.
31 $ export EDITOR='printf file:%s\\n'
33 Editing ../.autoenv.zsh..
36 Supports alias for EDITOR.
38 $ alias myeditor_alias='printf file:%s'
39 $ export EDITOR=myeditor_alias
41 Editing ../.autoenv.zsh..
42 file:../.autoenv.zsh (no-eol)
44 Falls back to "vim" for EDITOR.
46 $ alias vim='printf vim_file:%s'
49 Editing ../.autoenv.zsh..
50 vim_file:../.autoenv.zsh (no-eol)
52 Note with AUTOENV_LOOK_UPWARDS=0
55 $ AUTOENV_LOOK_UPWARDS=0
57 Note: found ../.autoenv.zsh, but AUTOENV_LOOK_UPWARDS is disabled.
58 Editing ../.autoenv.zsh..
60 $ AUTOENV_FILE_LEAVE=.autoenv_leave.zsh
61 $ touch ../$AUTOENV_FILE_LEAVE
63 Note: found ../.autoenv.zsh, but AUTOENV_LOOK_UPWARDS is disabled.
64 Note: found ../.autoenv_leave.zsh, but AUTOENV_LOOK_UPWARDS is disabled.
65 Editing ../.autoenv.zsh ../.autoenv_leave.zsh..
67 $ touch $AUTOENV_FILE_LEAVE
69 Note: found ../.autoenv.zsh, but AUTOENV_LOOK_UPWARDS is disabled.
70 Editing ../.autoenv.zsh .autoenv_leave.zsh..