Commit graph

206 commits

Author SHA1 Message Date
Brian Skinn
4b7944ceed Add documentation for env var effects on prompt
All are edits to tutorial.rst:

 - Expand ``{env_name}`` bullet
 - Add one paragraph each for $VIRTUAL_ENV_PROMPT and
   $VIRTUAL_ENV_DISABLE_PROMPT
2019-01-31 00:10:22 -05:00
Anthony Scopatz
a9babc7d6f env_prefix and env_postfix 2019-01-29 11:27:45 -05:00
Anthony Scopatz
9084c376b2 execalias 2018-11-09 13:49:33 -06:00
Joseph Paul
964e076484
Fix typo 2018-11-01 11:34:09 +01:00
David Dotson
1d60f9397b Updated docs with __xonsh__ changes 2018-09-30 13:59:08 -07:00
Anthony Scopatz
78cc725fa0
Merge pull request #2820 from EmreAtes/patch-1
Add example of arguments for callable aliases
2018-09-18 14:34:16 -04:00
Emre Ates
702a00ccce
Fix typo 2018-09-18 13:08:17 -04:00
Anthony Scopatz
f0c3a4b1cd more tests, news and docs 2018-09-17 18:23:20 -04:00
Emre Ates
0d63efcf1f
Add example of arguments for callable aliases
More discussion in #2819 . The example shows how to pass arguments to subprocess command.
2018-09-17 16:30:34 -04:00
Anthony Scopatz
8db169ec1a docs and tests 2018-08-20 19:57:56 -04:00
christopher
2132373a83 move warning to code block 2018-05-04 14:27:07 -04:00
christopher
72d999d505 no auto split strings 2018-05-04 14:26:21 -04:00
christopher
3fdae9a244 include error in tutorial 2018-05-04 14:24:30 -04:00
christopher
c357cb2894 DOC: single string vs. list of strings in `@()` 2018-05-04 12:18:22 -04:00
Anthony Scopatz
68e09e6569 resolved conflicts 2018-04-20 12:16:19 -04:00
Anthony Scopatz
79751158e5 doc improvements 2018-04-04 12:39:38 -04:00
Anthony Scopatz
23428c1fdb flake8 and doc fixes 2017-12-18 20:33:42 -08:00
Andrew Hundt
c1d6bdfee3 tutorial.rst command line arguments / parameters
added keywords so http://xon.sh/tutorial.html#executing-commands-and-scripts is more searchable
2017-10-05 18:00:51 -04:00
Joel Gerber
12e2fb80cc
Documentation spelling corrections
A number of common spelling typos found within various restructuredText
files have been identified and resolved.
2017-06-07 11:51:06 -04:00
Hugo Wang
5368d720fe moved unthreadable etc decorators to tools 2017-02-12 11:01:24 +08:00
Anthony Scopatz
9e6c4f5420 Merge pull request #2101 from tgoodlet/master
Add a vox custom prompt section
2017-01-28 14:15:15 -05:00
Bernardas
5894a277a9 rename CompletedCommand to CommandPipeline as per v0.5 changes. Also
update the examples for this command.
2017-01-24 05:31:55 +00:00
Tyler Goodlet
e77a6b7281 Add a vox custom prompt section
Aids those of use who like custom prompts but also want the same
prompt behaviour as `virtualenv`.

Resolves #2090
2017-01-23 21:00:36 -05:00
Anthony Scopatz
74480d8b2d Allow stdout to redirect to stderr 2017-01-11 23:29:28 -05:00
Anthony Scopatz
034d391532 Merge pull request #2059 from das-g/fix_anon_alias_fu_stdin_in_tutorial
Tutorial: fix stdin handling in anonymous aliases
2017-01-07 01:10:48 -08:00
Raphael Das Gupta
0e4cb0bbd9 un-generalize anonymous alias lambda 2017-01-05 10:58:26 +01:00
Anthony Scopatz
bd36793498 Merge pull request #2051 from jb-leger/dynamic_cwd_elision_char
Dynamic cwd elision char
2017-01-04 13:05:00 -08:00
Raphael Das Gupta
0d1041d532 Tutorial: fix stdin handling in anonymous aliases
In Xonsh 0.5.1, an alias function's `stdin` argument receives a `_io.TextIOWrapper` object, which cannot be stripped or be treated as a string as-is. We have to `.read()` it first and then `.strip()` the resulting string instead.

Also, fix the second lambda to output the space and EOL correctly.
2017-01-04 14:17:05 +01:00
Jean-Benoist Leger
4c571d8436 news item, VarDocs, and tutorial for $DYNAMIC_CWD_ELISION_CHAR 2017-01-03 21:23:41 +01:00
Konstantinos Tsakiltzidis
8f3c8b0d45 Merge pull request #2053 from das-g/patch-2
Tutorial: Rephrase Bash/Xonsh comparison warning concerning backticks
2017-01-03 20:57:11 +02:00
Gil Forsyth
9a6918ceee Merge pull request #2054 from das-g/patch-3
Tutorial: replace regexpath by regexsearch
2017-01-03 13:42:41 -05:00
Raphael Das Gupta
fb2c2a7c20 Tutorial: replace regexpath by regexsearch
`__xonsh_regexpath__` doesn't seem to exist in Xonsh 0.5.1, but `__xonsh_regexsearch__` has the mentioned implementation according to `??`

Also replaced `??` output with the actual (and user-agnostic) one from a Xonsh installed system-wide with `sudo pip install ...`
2017-01-03 17:58:28 +01:00
Raphael Das Gupta
7f31ca00bc be more explicit about Xonsh code snippet
in the tutorial's Bash/Xonsh comparison concerning backticks
2017-01-03 17:23:51 +01:00
Raphael Das Gupta
69ea35d2cd reflow tutorial source text 2017-01-03 17:20:38 +01:00
Raphael Das Gupta
3a3275d9a0 rephrase backtick xonsh/bash warning in tutorial
... again

(for more clarity)
2017-01-03 17:16:07 +01:00
Raphael Das Gupta
8e5051828f rephrase backticks xonsh/bash warning in tutorial 2017-01-03 17:13:55 +01:00
Raphael Das Gupta
a257f30c14 add missing verb in tutorial
to fix grammar
2017-01-03 17:06:18 +01:00
Raphael Das Gupta
8b00202231 escape backslash in Tutorial warning
There is no notion of an escaping character in xonsh, but there is in reStructuredText
2017-01-03 12:56:44 +01:00
Gil Forsyth
d3310c948f Merge pull request #1917 from SanketDG/fix-input/output-docs
Tutorial: Add note about redirection
2016-12-18 15:18:09 -05:00
SanketDG
0c9b809d96 Tutorial: Add note about redirection
Fixes https://github.com/xonsh/xonsh/issues/1863
2016-12-19 00:27:21 +05:30
Gordon Ball
ee97ae8bd0 Merge branch 'master' into first-class-paths 2016-12-08 13:06:21 +01:00
Anthony Scopatz
3545358a4b Merge pull request #1926 from xonsh/promptfields
prompt mechanism refactor
2016-11-04 15:21:59 -04:00
laerus
927dd300b6 renamed FORMATTER_DICT to PROMPT_FIELDS 2016-11-02 16:06:35 +02:00
Anthony Scopatz
9f35a4ea69 wrote tut 2016-10-30 10:47:32 -04:00
Anthony Scopatz
86111a6ebf Uncaptured aliases 2016-10-29 21:11:08 -04:00
Gil Forsyth
af2a67870d dont remove indent on example 2016-10-25 11:16:48 -04:00
Gil Forsyth
b0de2c55ab fix lexer name 2016-10-25 11:01:03 -04:00
Gordon Ball
7d79644612 Merge branch 'master' into first-class-paths 2016-10-19 15:05:42 +02:00
Gordon Ball
00802dfef9 Add support for path-yielding backticks 2016-10-18 12:19:16 +02:00
Gordon Ball
5e843149af Add tutorial section noting path objects can be implicitly used in subprocess mode 2016-10-17 21:20:45 +02:00