]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - tests/cwd.t
Simplify and lower LoC
[zsh-autoenv.git] / tests / cwd.t
index e0ae13281febc7848bb0f802de74051b96a43a34..97bc5f8470c579d269ca6556b8956540a12a54e6 100644 (file)
@@ -1,14 +1,14 @@
 Test $PWD, $autoenv_event, $autoenv_from_dir and $autoenv_to_dir.
 
-  $ source $TESTDIR/setup.sh
+  $ source $TESTDIR/setup.zsh || return 1
 
 Setup env actions / output.
 
   $ AUTOENV_LOOK_UPWARDS=1
   $ mkdir -p sub/sub2
   $ cd sub
-  $ echo 'echo ENTERED: PWD:${PWD:t} pwd:${${"$(pwd)"}:t} from:${autoenv_from_dir:t} to:${autoenv_to_dir:t} event:${autoenv_event}' > .env
-  $ echo 'echo LEFT: PWD:${PWD:t} pwd:${${"$(pwd)"}:t} from:${autoenv_from_dir:t} to:${autoenv_to_dir:t} event:${autoenv_event}' > .env.leave
+  $ echo 'echo ENTERED: PWD:${PWD:t} pwd:${${"$(pwd)"}:t} from:${autoenv_from_dir:t} to:${autoenv_to_dir:t} event:${autoenv_event}' > .autoenv.zsh
+  $ echo 'echo LEFT: PWD:${PWD:t} pwd:${${"$(pwd)"}:t} from:${autoenv_from_dir:t} to:${autoenv_to_dir:t} event:${autoenv_event}' > .autoenv_leave.zsh
 
 Manually create auth files.