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 |
|
Daniel Hahler
|
5a968c8299
|
minor: fix debug message ordering
|
2014-12-09 23:10:54 +01:00 |
|
Daniel Hahler
|
07069d8cbe
|
Merge pull request #16 from Tarrasch/tests-with-clobber
tests: setup for multiple ZDOTDIRs, fix/add "setopt clobber"
|
2014-12-08 22:29:06 +01:00 |
|
Daniel Hahler
|
9c829733ad
|
tests: setup for multiple ZDOTDIRs, fix/add "setopt clobber"
|
2014-12-08 22:14:54 +01:00 |
|
Srijan R Shetty
|
027e8fb5de
|
Create $AUTHENV_ENV_FILENAME if it does not exist
|
2014-12-08 21:45:13 +01:00 |
|
Daniel Hahler
|
e567a40592
|
Fixes after using setopt nounset during tests
Also add tests for unset variable with varstash.
|
2014-12-08 21:37:25 +01:00 |
|
Daniel Hahler
|
d6fbb13451
|
Merge pull request #12 from Tarrasch/autounstash-on-leave
Call `autounstash` automatically/always when leaving a directory
|
2014-12-04 13:31:56 +01:00 |
|
Daniel Hahler
|
d7baf66519
|
Merge pull request #13 from Tarrasch/fix-newline-handling-in-auth-file
Fix newline handling in auth file
|
2014-12-04 13:31:26 +01:00 |
|
Daniel Hahler
|
b478c5463f
|
Call autounstash automatically/always when leaving a directory
|
2014-12-04 13:28:48 +01:00 |
|
Daniel Hahler
|
1bfed02bc2
|
Add doc for _autoenv_deauthorize
|
2014-12-04 10:39:46 +01:00 |
|
Daniel Hahler
|
5655e26d6a
|
Encapsulate the file name in the hash pair for stricter matching
Ref: https://github.com/Tarrasch/zsh-autoenv/pull/13#issuecomment-65559752
|
2014-12-04 10:35:09 +01:00 |
|
Daniel Hahler
|
57038effd1
|
README: build status: use master branch, and .svg
|
2014-12-04 07:58:45 +01:00 |
|
Daniel Hahler
|
13bb443f48
|
Fix _autoenv_deauthorize with regard to newline handling, add tests
|
2014-12-04 07:20:44 +01:00 |
|
Daniel Hahler
|
4cdad1d4d5
|
Handle missing $1 in _autoenv_hash_pair
|
2014-12-04 07:20:20 +01:00 |
|
Daniel Hahler
|
4ed8aa2be3
|
gitignore tests/*.err
|
2014-12-02 22:49:01 +01:00 |
|
Daniel Hahler
|
364c0fbb2a
|
Remove underscore prefix from vars provided for .env files
Fixes https://github.com/Tarrasch/zsh-autoenv/issues/11
|
2014-12-02 18:49:23 +01:00 |
|
Daniel Hahler
|
d2f447e445
|
Use ${PWD:A} when checking for leave event
Use the absolute path when comparing to the absolute path of the
previously entered dirs.
|
2014-11-29 13:56:28 +01:00 |
|
Daniel Hahler
|
c2a3009d4a
|
Merge pull request #8 from blueyed/next
Next: varstash integration, tests refactoring, s/dotenv/autoenv/ and some more
|
2014-11-27 15:52:17 +01:00 |
|
Daniel Hahler
|
5e18125f04
|
Improve interactive prompt
- Revert usage of "read -q" for authentication (#10)
- Change format of "not authenticated" message (#9)
|
2014-11-27 13:33:04 +01:00 |
|
Daniel Hahler
|
03fd619614
|
Make env_shasum local in _autoenv_hash_pair
|
2014-11-27 13:31:44 +01:00 |
|
Daniel Hahler
|
0b941261b7
|
Add debugging, via AUTOENV_DEBUG>1
|
2014-11-26 19:42:57 +01:00 |
|
Daniel Hahler
|
58409acda3
|
Makefile: use test by default, improve for \*.t
|
2014-11-26 19:41:04 +01:00 |
|
Daniel Hahler
|
13c0dbcd2f
|
Fix $PWD while sourcing .env file - should be dir of .env file
|
2014-11-25 14:39:43 +01:00 |
|
Daniel Hahler
|
04e44f8244
|
Rename $_autoenv_this_dir to $_autoenv_source_dir
|
2014-11-24 20:19:25 +01:00 |
|
Daniel Hahler
|
869e679b79
|
Fix handling of stack for leave, add to stack for autoenv_source_parent
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
175a4eb628
|
tests: use sed to prepend to .env file
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
6d8141d290
|
Fix _autoenv_get_file_upwards for older Zsh
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
d9ff71ac1d
|
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
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
bcec00d2dd
|
Use AUTOENV prefix
- s/DOTENV_/AUTOENV_/
- s/dotenv_/autoenv_/
Ref: https://github.com/Tarrasch/zsh-autoenv/issues/6
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
e088e83ff9
|
Cleanup
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
dbfb8fe519
|
Streamline cwd behavior while sourcing
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
67e8030770
|
tests: add and use test_autoenv_add_to_env and test_autoenv_auth_env_files
Conflicts:
autoenv.zsh
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
f31bb529de
|
s/ENV_AUTHORIZATION_FILE/AUTOENV_ENV_FILENAME/
Ref: https://github.com/Tarrasch/zsh-autoenv/issues/6
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
d9529636b0
|
Comments / doc
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
5b553ba1ed
|
varstash integration
Fixes: https://github.com/Tarrasch/zsh-autoenv/issues/5
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
0bcbeb5ae5
|
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.
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
54124e128b
|
Add varstash from smartcd
Source: 4fef3d3610/lib/core/varstash
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
c12b861952
|
tests: inject '-t 1' to read during tests
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
c1a25d724e
|
tests: add setup script, used to be for all tests
|
2014-11-24 20:13:18 +01:00 |
|
Daniel Hahler
|
19d9e50650
|
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
|
2014-11-24 20:13:17 +01:00 |
|
Daniel Hahler
|
9cb032a54c
|
Makefile: add targets for tests/*.t
|
2014-11-24 18:05:31 +01:00 |
|
Daniel Hahler
|
f8a9942968
|
Set DOTENV_LOOK_UPWARDS=1 by default
Fixes https://github.com/Tarrasch/zsh-autoenv/issues/3
|
2014-11-16 12:35:17 +01:00 |
|
Daniel Hahler
|
b25f6b14dc
|
Add tests for $PWD during enter and leave events
|
2014-11-16 12:05:16 +01:00 |
|
Daniel Hahler
|
e4a7de4c50
|
Merge pull request #4 from blueyed/improvements
A lot of improvements, based on coming from "smartcd"
|
2014-11-16 11:46:35 +01:00 |
|
Daniel Hahler
|
98f0ec81fe
|
Use 'test' as target for tests (common sense)
|
2014-11-16 11:40:09 +01:00 |
|