]> Sergey Matveev's repositories - zsh-autoenv.git/log
zsh-autoenv.git
9 years agotests: inject '-t 1' to `read` during tests
Daniel Hahler [Fri, 21 Nov 2014 19:08:30 +0000 (20:08 +0100)]
tests: inject '-t 1' to `read` during tests

9 years agotests: add setup script, used to be for all tests
Daniel Hahler [Fri, 21 Nov 2014 19:07:06 +0000 (20:07 +0100)]
tests: add setup script, used to be for all tests

9 years agoSet DOTENV_LOOK_UPWARDS=1 by default
Daniel Hahler [Sun, 16 Nov 2014 11:35:17 +0000 (12:35 +0100)]
Set DOTENV_LOOK_UPWARDS=1 by default

Change `_dotenv_hash_pair`, adding a version suffix to trigger
re-authentication.

Fixes https://github.com/Tarrasch/zsh-autoenv/issues/3

9 years agoMakefile: add targets for tests/*.t
Daniel Hahler [Mon, 24 Nov 2014 17:05:31 +0000 (18:05 +0100)]
Makefile: add targets for tests/*.t

9 years agoSet DOTENV_LOOK_UPWARDS=1 by default
Daniel Hahler [Sun, 16 Nov 2014 11:35:17 +0000 (12:35 +0100)]
Set DOTENV_LOOK_UPWARDS=1 by default

Fixes https://github.com/Tarrasch/zsh-autoenv/issues/3

9 years agoAdd tests for $PWD during enter and leave events
Daniel Hahler [Sun, 16 Nov 2014 11:05:16 +0000 (12:05 +0100)]
Add tests for $PWD during enter and leave events

9 years agoMerge pull request #4 from blueyed/improvements
Daniel Hahler [Sun, 16 Nov 2014 10:46:35 +0000 (11:46 +0100)]
Merge pull request #4 from blueyed/improvements

A lot of improvements, based on coming from "smartcd"

9 years agoUse 'test' as target for tests (common sense)
Daniel Hahler [Sun, 16 Nov 2014 10:40:09 +0000 (11:40 +0100)]
Use 'test' as target for tests (common sense)

9 years agodoc / small refactoring according to feedback
Daniel Hahler [Sun, 16 Nov 2014 10:39:10 +0000 (11:39 +0100)]
doc / small refactoring according to feedback

9 years ago_dotenv_source: use 'builtin cd' and stored dir instead of 'cd -'
Daniel Hahler [Sat, 15 Nov 2014 16:04:36 +0000 (17:04 +0100)]
_dotenv_source: use 'builtin cd' and stored dir instead of 'cd -'

9 years agoWrap sourcing in _dotenv_source: chdir and set _dotenv_cwd=$PWD
Daniel Hahler [Sat, 15 Nov 2014 15:09:37 +0000 (16:09 +0100)]
Wrap sourcing in _dotenv_source: chdir and set _dotenv_cwd=$PWD

9 years agoCheck for file existence in _dotenv_check_authorized_env_file
Daniel Hahler [Sat, 15 Nov 2014 15:09:02 +0000 (16:09 +0100)]
Check for file existence in _dotenv_check_authorized_env_file

9 years agoCleanup, and fixes (absolute path for env_file)
Daniel Hahler [Sat, 15 Nov 2014 14:48:57 +0000 (15:48 +0100)]
Cleanup, and fixes (absolute path for env_file)

9 years agoAdd a test for DOTENV_HANDLE_LEAVE=0
Daniel Hahler [Sat, 15 Nov 2014 14:25:20 +0000 (15:25 +0100)]
Add a test for DOTENV_HANDLE_LEAVE=0

9 years agoVarious improvements
Daniel Hahler [Sat, 15 Nov 2014 14:08:52 +0000 (15:08 +0100)]
Various improvements

 - Support for leave event, via DOTENV_FILE_LEAVE and _dotenv_event (can
   use DOTENV_FILE_LEAVE=$DOTENV_FILE_ENTER).
 - Support for searching upwards for $DOTENV_FILE_ENTER (#3).
 - Source .env only once per session, but re-source when leave events
   are enabled (#1).
 - Trigger the machinery when the script gets sourced, for the current
   dir (#2).

9 years agoUse 'local' in functions
Daniel Hahler [Sat, 15 Nov 2014 13:49:48 +0000 (14:49 +0100)]
Use 'local' in functions

9 years agoUse escaped grep command, skipping aliases
Daniel Hahler [Sat, 15 Nov 2014 12:59:42 +0000 (13:59 +0100)]
Use escaped grep command, skipping aliases

10 years agoAdd bitdeli badge
Arash Rouhani [Mon, 16 Sep 2013 09:27:08 +0000 (11:27 +0200)]
Add bitdeli badge

10 years agoForgot trailing white space
Arash Rouhani [Sun, 8 Sep 2013 16:54:17 +0000 (18:54 +0200)]
Forgot trailing white space

10 years agoAdd travis image
Arash Rouhani [Sun, 8 Sep 2013 16:50:20 +0000 (18:50 +0200)]
Add travis image

10 years agoAdd tests
Arash Rouhani [Sun, 8 Sep 2013 16:32:16 +0000 (18:32 +0200)]
Add tests

10 years agoAdd readme
Arash Rouhani [Sun, 8 Sep 2013 15:14:28 +0000 (17:14 +0200)]
Add readme

10 years agoAntigenify
Arash Rouhani [Sun, 8 Sep 2013 15:07:38 +0000 (17:07 +0200)]
Antigenify

10 years agoAdd source file
Arash Rouhani [Sun, 8 Sep 2013 15:06:26 +0000 (17:06 +0200)]
Add source file