Commit graph

71 commits

Author SHA1 Message Date
a
982ce976ec fix 2020-10-21 03:52:31 +03:00
a
04df5c75ad env path 2020-10-07 19:22:02 +03:00
a
7049c250b4 Merge branch 'master' of https://github.com/xonsh/xonsh into env_get_path 2020-09-30 23:44:37 +03:00
Anthony Scopatz
7b1b5d2874
Merge pull request #3793 from cafehaine/master
Change the behavior of NO_COLOR, add RESET
2020-09-30 13:30:38 -07:00
a
fb4c52a5ef Fix register 2020-09-30 21:36:59 +03:00
cafehaine
f3bf1d287f Fix tests 2020-09-23 21:15:37 +02:00
Bob Hyman
53c0f25e77 fix per review 2020-09-11 12:31:11 -04:00
Bob Hyman
034f9f325d Cleanup per review. 2020-09-11 01:11:29 -04:00
Bob Hyman
d0096fb655 Test cases, news and fix one bug. 2020-09-08 14:44:26 -04:00
Anthony Scopatz
f048b295d6 black updates to tests and docs 2020-08-26 10:10:59 -05:00
Bob Hyman
c4aaede00b Rewrite fix per code review, cleaner! 2020-08-25 16:17:34 -04:00
Bob Hyman
e0d9ace4b0 fix commit list 2020-08-24 13:32:49 -04:00
Anthony Scopatz
43e7827a9a fix tests 2020-08-16 19:13:35 -05:00
Anthony Scopatz
0d1d3574ea Env.rawkeys() 2020-08-16 18:46:02 -05:00
David Strobach
3a45923b83 Only return string keys while iterating over __xonsh__.env 2020-08-12 03:34:34 +02:00
David Dotson
a8d4a57f01
Environment variable registration, deregistration (addresses #3227) (#3377)
* First attempt at register/deregister machinery for envvars

* Added detailed docstring, simplified ensurers

Also added some type checking that became clear from docstring writing.

* Changes in response to @scopatz review

Simplified kwarg names.

* defaultval -> default

* Created new Var namedtuple, as well as DEFAULT_VARS

We should now delete DEFAULT_ENSURERS, DEFAULT_VALUES, DEFAULT_DOCS, and
refactor Env to use the new single namedtuple and the DEFAULT_VARS dict

* Removed DEFAULT_ENSURERS, DEFAULT_VALUES, DEFAULT_DOCS

Now need to edit Env to use new DEFAULT_VARS, Var namedtuple

* Finished updating Env object to use new combined Var

Also made corresponding changes elsewhere ensurer was used

* Working on test failures

* More fixes in light of test failures

* Set default values for Var in register.

There's a bit of duplication here, but makes for a cleaner function.

* Black reformatting on environ.py

* Removed history replay

* Added register tests

* Added addtional deregistration test

* Removed all replay references, in docs too

* Added news item for env-reg-dereg

* trigger rebuild

* doc fix

* more doc fixes

* again

* attr names

* reorder imports

* fix flake error

Co-authored-by: Anthony Scopatz <scopatz@gmail.com>
2020-08-05 10:39:11 -04:00
Bob Hyman
dde73ba72c Xonsh failback to /usr/bin/bash in preference to /etc/shells 2020-06-25 19:49:04 -04:00
Bob Hyman
08f1b06749 ln=target; fix #3578 2020-06-13 01:36:22 -04:00
Bob Hyman
4e230fa5a8 LS_COLORS add 'mh' change 'rs' to 'fi' 2020-06-09 21:47:59 -04:00
Bob Hyman
26475146e2
Flake8 1 (#3550)
* flake8 fixes -- tests only

* fix ci failure

* integrate fix from is_3551 so tests will pass.

* Update tests/test_builtins.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-05-05 06:42:28 -04:00
Noortheen Raja
0851866ebf feat: add HISTCONTROL(erasedups) support to sqlite backend
fixes part of !3478
2020-03-19 12:58:31 +05:30
Bob Hyman
f54129342b Hammer lint errors flat. 2020-01-04 13:56:02 -05:00
Bob Hyman
6082b61fc3 ls-colors -- colorize file arguments in subproc mode command lines 2019-12-26 05:51:48 -05:00
Anthony Scopatz
5f30593dfe target color 2019-08-06 14:39:11 -04:00
Jean-Benoist Leger
d81a40efbc
change the env variable used for testing delitem behavior for default values in environ 2019-05-15 23:23:49 +02:00
Jean-Benoist Leger
934f337ab1
add test on Env.__delitem__ 2019-04-26 20:27:45 +02:00
Anthony Scopatz
53e7645d01 more color fixes 2019-03-06 23:08:26 -08:00
Anthony Scopatz
43d0527657 fixes 2019-02-14 10:00:20 -05:00
Anthony Scopatz
41c240a7ee some test and flake fixes 2019-02-13 19:12:53 -05:00
Anthony Scopatz
4c91df2abc many test fixes 2018-09-13 14:03:35 -04:00
Anthony Scopatz
634a8ec9f2 black tests 2018-08-30 09:18:49 -05:00
Anthony Scopatz
1883f5002c some minor improvements and test 2018-08-21 15:21:46 -04:00
Anthony Scopatz
76ae2f8924 fixed $ARG<N> subprocess issue 2018-07-20 20:41:00 -04:00
Anthony Scopatz
d2928dec6b fixed tests for no conf 2017-12-18 19:13:49 -08:00
Jamie Bliss
517b176456 Remove lines/columns from the default environment 2017-11-29 13:51:13 -05:00
Gil Forsyth
d6540ce66d add test that all int and bool envvars have ensurers
hopefully this will stop this from cropping up again in the future
2017-03-15 09:09:08 -04:00
laerus
bbeafbab56 event on_envvar moar testing 2017-01-31 12:51:26 +02:00
laerus
2e492eed27 event on_envvar_change no fire for same value 2017-01-31 12:26:50 +02:00
laerus
cd21c83e09 split on_envvar to on_envvar_new & on_envvar_change 2017-01-31 12:13:50 +02:00
laerus
c6b9839690 environ event test for new envvar 2017-01-30 15:41:48 +02:00
laerus
d3227a3f14 event on_envvar 2017-01-30 14:45:35 +02:00
Anthony Scopatz
24e0f61808 fixed commands cache env test 2016-09-25 15:54:31 -04:00
laerus
b87f6e9922 migrate prompt tests p1 2016-09-15 17:06:35 +03:00
laerus
4499952a26 added __contains__ method on Env + test 2016-07-04 20:09:55 +03:00
laerus
02154b2597 pretty reckless vim sub 2016-07-03 22:03:06 +03:00
laerus
de2745bc45 'test_environ new tests migration' 2016-07-02 03:36:32 +03:00
laerus
916999913e Merge branch 'master' into pytest_migration
maybe a fix for test_environ conflicts

Conflicts:
	tests/test_environ.py
2016-07-01 22:28:45 +03:00
laerus
bea8c62829 tests bugs fixing/test_parser & test_tools to go 2016-07-01 21:52:37 +03:00
Oleh Prypin
bc11ba78db Test 'optional items' (format spec) in format_prompt 2016-07-01 19:07:20 +03:00
Oleh Prypin
fa91c6b21b Drop the separate implementation of format_prompt
It was used only in one place and can be replaced with partial_format_prompt
2016-07-01 19:07:20 +03:00