1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-23 23:50:58 +02:00
Commit Graph

110 Commits

Author SHA1 Message Date
Daniel Hahler
473a0a32df travis: use 'sudo make' to fix zsh test
Build: https://travis-ci.org/Tarrasch/zsh-autoenv/jobs/59762278

Error:

   ./A04redirect.ztst: starting.
   *** /tmp/zsh.ztst.err.16143	Thu Apr 23 18:06:09 2015
   --- /tmp/zsh.ztst.terr.16143	Thu Apr 23 18:06:09 2015
   ***************
   *** 1 ****
   ! zsh:1: no such file or directory: /nonexistent/nonexistent
   --- 1 ----
   ! zsh:1: permission denied: /nonexistent/nonexistent
   Test ./A04redirect.ztst failed: error output differs from expected as shown above for:
     $ZTST_testdir/../Src/zsh -fc 'exec >/nonexistent/nonexistent
     echo output'
   Was testing: failed exec redir, no POSIX_BUILTINS
2015-04-23 20:24:30 +02:00
Daniel Hahler
e6e906e6b9 Fix _autoenv_get_file_mtime for zsh 4 (no pipefail option) 2015-04-23 19:55:21 +02:00
Daniel Hahler
b725b5da9b make test_full: use zsh 4 (/opt/zsh4/bin/zsh) and zsh 5 2015-04-23 19:54:44 +02:00
Daniel Hahler
5275eb398d travis: add zsh 4/5 to matrix 2015-04-23 19:24:21 +02:00
Daniel Hahler
5df54aca65 travis: fix env matrix (use a list) 2015-04-23 17:58:53 +02:00
Daniel Hahler
433693f5c6 Cleanup tests/varstash_export.t 2015-04-23 17:57:56 +02:00
Daniel Hahler
248bd5cc0d varstash: fix get_autostash_array_name for Zsh 4.3.17 (Travis) 2015-04-23 17:57:46 +02:00
Daniel Hahler
36846ae9b5 travis: use env test matrix for ZDOTDIR 2015-04-23 17:38:01 +02:00
Daniel Hahler
1797c25473 travis: cleanup, output zsh version 2015-04-23 17:34:59 +02:00
Daniel Hahler
7699fe6aba tests: rename setup.sh to setup.zsh 2015-04-23 16:03:21 +02:00
Daniel Hahler
ebef4c2613 tests: define/use $TEST_SOURCE_AUTOENV
This handled (re)loading autoenv for
ZDOTDIR=tests/ZDOTDIR.loadviafunction.
2015-04-23 16:00:15 +02:00
Daniel Hahler
102a3f2f44 make test_full: handle error return code from cram 2015-04-23 15:30:42 +02:00
Daniel Hahler
e29074c329 varstash: remove lib functions, use zsh functions 2015-04-23 15:27:39 +02:00
Daniel Hahler
c4e388980e varstash: add support for exported variables in subshells 2015-04-23 15:11:40 +02:00
Daniel Hahler
fe3d479b08 minor: doc 2015-04-23 15:11:05 +02:00
Daniel Hahler
5cf1e01b28 tests: setup.sh: export TEST_AUTOENV_PLUGIN_FILE 2015-04-23 14:40:26 +02:00
Daniel Hahler
8763a5b627 Fix return value of _autoenv_source; use ': $(( .. ))'
`(( foo++ ))` returns an error in case $foo is not defined.
2015-04-23 14:39:38 +02:00
Daniel Hahler
9a010cbdf6 Do not reset the stack variables when (re)sourcing the plugin
This is meant to keep the current state when re-sourcing the shell
config (`. ~/.zshrc`).

Closes https://github.com/Tarrasch/zsh-autoenv/pull/24
2015-03-30 00:58:32 +02:00
Arash Rouhani
611c1a1588 Merge pull request #25 from blueyed/set-errexit-during-setup
tests: setopt errexit during setup
2015-03-29 12:46:43 +02:00
Daniel Hahler
e8372e9cdf tests: setopt errexit during setup
This is meant to prevent accidentally overwriting your auth file when
running / changing the tests.
2015-03-15 22:16:12 +01:00
Joe Block
15bc1e3c62 Add zgen instructions 2015-02-18 20:25:28 +01:00
Daniel Hahler
b3a56f449f Merge pull request #22 from Tarrasch/improve-and-test-zstat-integration
Improve and test zstat integration
2015-01-26 14:08:25 +01:00
Daniel Hahler
c3c0cb9676 Makefile: add clean target 2015-01-25 23:51:41 +01:00
Daniel Hahler
88e602e367 tests: setup.sh: doc / more verbose 2015-01-25 19:50:27 +01:00
Daniel Hahler
5cb689875e tests: abort if setup fails!
Otherwise the user's auth file might get removed.
2015-01-25 19:48:56 +01:00
Daniel Hahler
5d65371786 Test env for invalid zsh module_path, where zsh/zstat fails 2015-01-25 19:22:52 +01:00
Daniel Hahler
6fe08c3fde Improve zsh/zstat integration; also make it handle dirs 2015-01-25 19:22:52 +01:00
Daniel Hahler
5cfc69ad47 Improve ZDOTDIR setting in Makefile 2015-01-25 19:16:30 +01:00
Daniel Hahler
e07a47f566 Merge branch 'allow-disable'
Closes: #20
2015-01-20 11:16:37 +01:00
Daniel Hahler
373e1b21fb Add support for $AUTOENV_DISABLED, which skips the chpwd hook 2015-01-20 11:16:22 +01:00
Daniel Hahler
acbd860b38 Merge pull request #19 from Tarrasch/fix-symlink-handling
Fix symlink handling
2015-01-20 08:58:56 +01:00
Daniel Hahler
873b9f8062 Fix symlink handling, especially for symlinks not below "env_dir" 2015-01-19 19:03:26 +01:00
Daniel Hahler
392bca542c make: fix calling tests files directly 2015-01-19 18:59:22 +01:00
Arash Rouhani
7a0a67a982 Merge pull request #18 from qur2/master
Create init.zsh to make it compatible with prezto
2015-01-19 15:49:47 +01:00
Aurélien Scoubeau
8208d1ce1f Create init.zsh to make compatible with prezto 2015-01-19 15:25:42 +01:00
Daniel Hahler
ae7c8ae73d Makefile: use CURDIR instead of PWD; used with 'make -C ..' 2015-01-17 20:43:59 +01:00
Daniel Hahler
9339306f60 Merge pull request #17 from Tarrasch/dont-cd-in-chpwd
Do not `cd` in the `chpwd` hook: changes $PWD behavior in .env files!
2015-01-17 20:39:06 +01:00
Daniel Hahler
986a7609ff Do not cd in the chpwd hook
This is not really necessary, except for the convenience of being in the
.env file's directory during the hook.
But it messes around with the "cd history", e.g. `cd -`!

To reference the .env file or its directory, `$autoenv_env_file` and
`${autoenv_env_file:h}` can be used instead.
2015-01-17 20:10:41 +01:00
Daniel Hahler
1856e89365 Set autoenv_env_file in _autoenv_source 2015-01-17 16:39:04 +01:00
Daniel Hahler
685a3f16f5 Minor cleanup: centralize call to _autoenv_stack_entered_add 2015-01-17 16:38:40 +01:00
Daniel Hahler
7d970a03f7 varstash: use '==' for consistency 2014-12-18 20:52:52 +01:00
Daniel Hahler
06b96e78c3 test_full: output extra newline between suites/variants 2014-12-18 20:52:36 +01:00
Daniel Hahler
be306b1178 varstash: fix pattern in stash 2014-12-18 20:36:54 +01:00
Daniel Hahler
07abe9cea8 varstash: remove all usages of =~ 2014-12-18 20:08:51 +01:00
Daniel Hahler
936b5eaf77 Handle failure of loading zsh/stat 2014-12-18 19:45:48 +01:00
Daniel Hahler
f5077e320d varstash: no need to use regex, avoids 'failed to load module: zsh/regex' error 2014-12-18 19:45:19 +01:00
Daniel Hahler
d136fd8731 README: add section about manual installation 2014-12-11 16:31:41 +01:00
Daniel Hahler
020a9152b7 Fix being loaded from a function (antigen)
Fixes https://github.com/Tarrasch/zsh-autoenv/issues/14
2014-12-11 16:22:54 +01:00
Daniel Hahler
1219d83c51 Fix autoloading of colors; just once 2014-12-10 00:09:04 +01:00
Daniel Hahler
53da60d3e3 Init arrays (see #14) 2014-12-09 23:12:38 +01:00