]>
Sergey Matveev's repositories - zsh-autoenv.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Daniel Hahler [Mon, 24 Nov 2014 19:19:25 +0000 (20:19 +0100)]
Rename $_autoenv_this_dir to $_autoenv_source_dir
Daniel Hahler [Mon, 24 Nov 2014 19:12:45 +0000 (20:12 +0100)]
Fix handling of stack for leave, add to stack for autoenv_source_parent
Daniel Hahler [Mon, 24 Nov 2014 18:03:51 +0000 (19:03 +0100)]
tests: use sed to prepend to .env file
Daniel Hahler [Mon, 24 Nov 2014 17:51:20 +0000 (18:51 +0100)]
Fix _autoenv_get_file_upwards for older Zsh
Daniel Hahler [Mon, 24 Nov 2014 16:48:51 +0000 (17:48 +0100)]
Some more refactoring, adding support for `autoenv_source_parent`
- use file mtime with "entered" stack
- fix loading of varstash; look at $functions
- Refactor stack handling, add tests
- Refactor `_autoenv_get_file_upwards`, add tests
- tests: setup: reset AUTOENV_ENV_FILENAME
Daniel Hahler [Fri, 21 Nov 2014 21:51:28 +0000 (22:51 +0100)]
Use AUTOENV prefix
- s/DOTENV_/AUTOENV_/
- s/dotenv_/autoenv_/
Ref: https://github.com/Tarrasch/zsh-autoenv/issues/6
Daniel Hahler [Fri, 21 Nov 2014 21:47:45 +0000 (22:47 +0100)]
Cleanup
Daniel Hahler [Fri, 21 Nov 2014 21:33:00 +0000 (22:33 +0100)]
Streamline cwd behavior while sourcing
Daniel Hahler [Fri, 21 Nov 2014 22:07:53 +0000 (23:07 +0100)]
tests: add and use test_autoenv_add_to_env and test_autoenv_auth_env_files
Conflicts:
autoenv.zsh
Daniel Hahler [Fri, 21 Nov 2014 19:15:08 +0000 (20:15 +0100)]
s/ENV_AUTHORIZATION_FILE/AUTOENV_ENV_FILENAME/
Ref: https://github.com/Tarrasch/zsh-autoenv/issues/6
Daniel Hahler [Sun, 16 Nov 2014 10:28:43 +0000 (11:28 +0100)]
Comments / doc
Daniel Hahler [Sat, 15 Nov 2014 19:59:39 +0000 (20:59 +0100)]
varstash integration
Fixes: https://github.com/Tarrasch/zsh-autoenv/issues/5
Daniel Hahler [Sat, 15 Nov 2014 19:01:38 +0000 (20:01 +0100)]
Adopt varstash from http://github.com/cxreg/smartcd
Decouple it from smartcd and consider it zsh-only.
This also adds required library functions from smartcd's
lib/core/arrays.
Daniel Hahler [Sat, 15 Nov 2014 15:24:26 +0000 (16:24 +0100)]
Add varstash from smartcd
Source: https://github.com/cxreg/smartcd/blob/
4fef3d3610873d9e8044cb5be1922fb056f4228d /lib/core/varstash
Daniel Hahler [Fri, 21 Nov 2014 19:08:30 +0000 (20:08 +0100)]
tests: inject '-t 1' to `read` during tests
Daniel Hahler [Fri, 21 Nov 2014 19:07:06 +0000 (20:07 +0100)]
tests: add setup script, used to be for all tests
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
Daniel Hahler [Mon, 24 Nov 2014 17:05:31 +0000 (18:05 +0100)]
Makefile: add targets for tests/*.t
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
Daniel Hahler [Sun, 16 Nov 2014 11:05:16 +0000 (12:05 +0100)]
Add tests for $PWD during enter and leave events
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"
Daniel Hahler [Sun, 16 Nov 2014 10:40:09 +0000 (11:40 +0100)]
Use 'test' as target for tests (common sense)
Daniel Hahler [Sun, 16 Nov 2014 10:39:10 +0000 (11:39 +0100)]
doc / small refactoring according to feedback
Daniel Hahler [Sat, 15 Nov 2014 16:04:36 +0000 (17:04 +0100)]
_dotenv_source: use 'builtin cd' and stored dir instead of 'cd -'
Daniel Hahler [Sat, 15 Nov 2014 15:09:37 +0000 (16:09 +0100)]
Wrap sourcing in _dotenv_source: chdir and set _dotenv_cwd=$PWD
Daniel Hahler [Sat, 15 Nov 2014 15:09:02 +0000 (16:09 +0100)]
Check for file existence in _dotenv_check_authorized_env_file
Daniel Hahler [Sat, 15 Nov 2014 14:48:57 +0000 (15:48 +0100)]
Cleanup, and fixes (absolute path for env_file)
Daniel Hahler [Sat, 15 Nov 2014 14:25:20 +0000 (15:25 +0100)]
Add a test for DOTENV_HANDLE_LEAVE=0
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).
Daniel Hahler [Sat, 15 Nov 2014 13:49:48 +0000 (14:49 +0100)]
Use 'local' in functions
Daniel Hahler [Sat, 15 Nov 2014 12:59:42 +0000 (13:59 +0100)]
Use escaped grep command, skipping aliases
Arash Rouhani [Mon, 16 Sep 2013 09:27:08 +0000 (11:27 +0200)]
Add bitdeli badge
Arash Rouhani [Sun, 8 Sep 2013 16:54:17 +0000 (18:54 +0200)]
Forgot trailing white space
Arash Rouhani [Sun, 8 Sep 2013 16:50:20 +0000 (18:50 +0200)]
Add travis image
Arash Rouhani [Sun, 8 Sep 2013 16:32:16 +0000 (18:32 +0200)]
Add tests
Arash Rouhani [Sun, 8 Sep 2013 15:14:28 +0000 (17:14 +0200)]
Add readme
Arash Rouhani [Sun, 8 Sep 2013 15:07:38 +0000 (17:07 +0200)]
Antigenify
Arash Rouhani [Sun, 8 Sep 2013 15:06:26 +0000 (17:06 +0200)]
Add source file