Fix typos etc. in environment documentation

This commit is contained in:
Morten Enemark Lund 2016-02-16 11:18:23 +01:00
parent 7b5cf9ffc5
commit 78a9b35ace

View file

@ -235,7 +235,7 @@ DEFAULT_DOCS = {
'Flag for automatically pushing directories onto the directory stack.' 'Flag for automatically pushing directories onto the directory stack.'
), ),
'AUTO_SUGGEST': VarDocs( 'AUTO_SUGGEST': VarDocs(
'Enable automatic command suggestions based on history, like in fish ' 'Enable automatic command suggestions based on history, like in the fish '
'shell.\n\nPressing the right arrow key inserts the currently ' 'shell.\n\nPressing the right arrow key inserts the currently '
'displayed suggestion. Only usable with $SHELL_TYPE=prompt_toolkit.'), 'displayed suggestion. Only usable with $SHELL_TYPE=prompt_toolkit.'),
'BASH_COMPLETIONS': VarDocs( 'BASH_COMPLETIONS': VarDocs(
@ -277,7 +277,7 @@ DEFAULT_DOCS = {
"$SHELL_TYPE=prompt_toolkit"), "$SHELL_TYPE=prompt_toolkit"),
'COMPLETIONS_MENU_ROWS': VarDocs( 'COMPLETIONS_MENU_ROWS': VarDocs(
'Number of rows to reserve for tab-completions menu if ' 'Number of rows to reserve for tab-completions menu if '
"$COMPLETIONS_DISPLAY is 'single' or 'multi'. This only effects the " "$COMPLETIONS_DISPLAY is 'single' or 'multi'. This only affects the "
'prompt-toolkit shell.'), 'prompt-toolkit shell.'),
'DIRSTACK_SIZE': VarDocs('Maximum size of the directory stack.'), 'DIRSTACK_SIZE': VarDocs('Maximum size of the directory stack.'),
'EXPAND_ENV_VARS': VarDocs( 'EXPAND_ENV_VARS': VarDocs(
@ -320,7 +320,7 @@ DEFAULT_DOCS = {
configurable=False), configurable=False),
'PATH': VarDocs( 'PATH': VarDocs(
'List of strings representing where to look for executables.'), 'List of strings representing where to look for executables.'),
'PATHEXT': VarDocs('List of strings for filtering valid exeutables by.'), 'PATHEXT': VarDocs('List of strings for filtering valid executables by.'),
'PROMPT': VarDocs( 'PROMPT': VarDocs(
'The prompt text. May contain keyword arguments which are ' 'The prompt text. May contain keyword arguments which are '
"auto-formatted, see 'Customizing the Prompt' at " "auto-formatted, see 'Customizing the Prompt' at "
@ -334,12 +334,12 @@ DEFAULT_DOCS = {
'specified here, prompt-toolkit uses the colors from ' 'specified here, prompt-toolkit uses the colors from '
"'xonsh.tools._PT_COLORS'.", configurable=False), "'xonsh.tools._PT_COLORS'.", configurable=False),
'PROMPT_TOOLKIT_STYLES': VarDocs( 'PROMPT_TOOLKIT_STYLES': VarDocs(
'This is a mapping of user-specified styles for prompt-toolkit. See ' 'This is a mapping of pygments tokens to user-specified styles for '
'the prompt-toolkit documentation for more details. If None, this is ' 'prompt-toolkit. See the prompt-toolkit and pygments documentation '
'skipped.', configurable=False), 'for more details. If None, this is skipped.', configurable=False),
'PUSHD_MINUS': VarDocs( 'PUSHD_MINUS': VarDocs(
'Flag for directory pushing functionality. False is the normal ' 'Flag for directory pushing functionality. False is the normal '
'behaviour.'), 'behavior.'),
'PUSHD_SILENT': VarDocs( 'PUSHD_SILENT': VarDocs(
'Whether or not to suppress directory stack manipulation output.'), 'Whether or not to suppress directory stack manipulation output.'),
'RAISE_SUBPROC_ERROR': VarDocs( 'RAISE_SUBPROC_ERROR': VarDocs(
@ -355,7 +355,7 @@ DEFAULT_DOCS = {
" - 'random' selects a random shell from the above on startup\n" " - 'random' selects a random shell from the above on startup\n"
" - 'best' selects the most feature-rich shell available on the\n" " - 'best' selects the most feature-rich shell available on the\n"
" user's system\n\n" " user's system\n\n"
'To use the prompt_toolkit shell you need to have prompt_toolkit ' 'To use the prompt_toolkit shell you need to have the prompt_toolkit '
'(https://github.com/jonathanslenders/python-prompt-toolkit) ' '(https://github.com/jonathanslenders/python-prompt-toolkit) '
'library installed. To specify which shell should be used, do so in ' 'library installed. To specify which shell should be used, do so in '
'the run control file.'), 'the run control file.'),
@ -404,18 +404,18 @@ DEFAULT_DOCS = {
default="'$XONSH_CONFIG_DIR/config.json'"), default="'$XONSH_CONFIG_DIR/config.json'"),
'XONSHRC': VarDocs( 'XONSHRC': VarDocs(
'A tuple of the locations of run control files, if they exist. User ' 'A tuple of the locations of run control files, if they exist. User '
'defined run control file will supercede values set in system-wide ' 'defined run control file will supersede values set in system-wide '
'control file if there is a naming collision.', default=( 'control file if there is a naming collision.', default=(
"On Linux & Mac OSX: ('/etc/xonshrc', '~/.xonshrc')\n" "On Linux & Mac OSX: ('/etc/xonshrc', '~/.xonshrc')\n"
"On Windows: ('%ALLUSERSPROFILE%\\xonsh\\xonshrc', '~/.xonshrc')")), "On Windows: ('%ALLUSERSPROFILE%\\xonsh\\xonshrc', '~/.xonshrc')")),
'XONSH_CONFIG_DIR': VarDocs( 'XONSH_CONFIG_DIR': VarDocs(
'This is location where xonsh configuration information is stored.', 'This is the location where xonsh configuration information is stored.',
configurable=False, default="'$XDG_CONFIG_HOME/xonsh'"), configurable=False, default="'$XDG_CONFIG_HOME/xonsh'"),
'XONSH_DATA_DIR': VarDocs( 'XONSH_DATA_DIR': VarDocs(
'This is the location where xonsh data files are stored, such as ' 'This is the location where xonsh data files are stored, such as '
'history.', default="'$XDG_DATA_HOME/xonsh'"), 'history.', default="'$XDG_DATA_HOME/xonsh'"),
'XONSH_ENCODING': VarDocs( 'XONSH_ENCODING': VarDocs(
'This is the that xonsh should use for subrpocess operations.', 'This is the encoding that xonsh should use for subrpocess operations.',
default='sys.getdefaultencoding()'), default='sys.getdefaultencoding()'),
'XONSH_ENCODING_ERRORS': VarDocs( 'XONSH_ENCODING_ERRORS': VarDocs(
'The flag for how to handle encoding errors should they happen. ' 'The flag for how to handle encoding errors should they happen. '
@ -442,10 +442,10 @@ DEFAULT_DOCS = {
'True if xonsh is running as a login shell, and False otherwise.', 'True if xonsh is running as a login shell, and False otherwise.',
configurable=False), configurable=False),
'XONSH_SHOW_TRACEBACK': VarDocs( 'XONSH_SHOW_TRACEBACK': VarDocs(
'Controls if a traceback is shown exceptions occur in the shell. ' 'Controls if a traceback is shown if exceptions occur in the shell. '
'Set to True to always show or False to always hide. If undefined ' 'Set to True to always show traceback or False to always hide. '
'then traceback is hidden but a notice is shown on how to enable the ' 'If undefined then the traceback is hidden but a notice is shown on how '
'traceback.'), 'to enable the full traceback.'),
'XONSH_STORE_STDOUT': VarDocs( 'XONSH_STORE_STDOUT': VarDocs(
'Whether or not to store the stdout and stderr streams in the ' 'Whether or not to store the stdout and stderr streams in the '
'history files.', configurable=False), 'history files.', configurable=False),