Xonsh

Latest version: v0.19.0

Safety actively analyzes 688568 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 21

0.13.1

====================

**Added:**

* The ujson (faster version of json) added to xonsh[full] package.

**Changed:**

* Bumped Python version in `xonsh.AppImage` to 3.10
* The terminal's title is updated with the current command's name even if the command is a captured command or a callable alias

**Fixed:**

* Warn and continue if a user without ``pygments`` tries to load an unknown style
* Fixed a bash completion bug when prefixing a file path with '<' or '>' (for redirecting stdin/stdout/stderr)
* Fixed a bash completion bug when completing a git branch name when deleting a remote branch (e.g. `git push origin :dev-branch`)
* A callable alias containing subprocess commands no longer freezes when piped to another command
* ``less`` no longer stops when a callable alias containing subprocess commands is piped into it
* ``gitstatus`` Prompt-field would be empty on paths without git setup.
* When using the sway window manager, ``swaymsg -t get_inputs`` no longer fails with the error "Unable to receive IPC response"
* The ``current_job`` variable now works as expected when used in ``$TITLE``

**Security:**

* ``xpip`` will never add ``sudo`` under any circumstances and will instead append ``--user`` as needed

**Authors:**

* Gil Forsyth
* Noortheen Raja
* anki-code
* Peter Ye
* pre-commit-ci[bot]
* Stefano Rivera
* jbw3
* jgart
* Michael Panitz (at Cascadia College)
* Tim Gates

0.13.0

====================

**Removed:**

* The ``xonsh`` code-base is no longer amalgamated, so tracebacks should be
human-readable without intervention. This may have (minor) impacts on startup
speed.

**Fixed:**

* Fix xontrib loading for `free_cwd`
* Fixed `whole_word_jumping` xontrib failing on Linux, conditional import of ``ptk_win32`` → Windows only
* Fixed error caused by unintialized Xonsh session env when using Xonsh as a library just for its Pygments lexer plugin.

**Authors:**

* Gil Forsyth
* Noortheen Raja
* anki-code
* Eddie Peters
* cmidkiff87
* Hannes Römer

0.12.6

====================

**Fixed:**

* String literal concatenation now works with f-strings and path literals
* A SyntaxError is raised when string literal concatenation is attempted with literals of different types (e.g. str and bytes)

**Authors:**

* Gil Forsyth
* Noortheen Raja
* Peter Ye

0.12.5

====================

**Added:**

* Support for f-glob strings (e.g. ``fg`{prefix}*)
* Now xontribs support `loading and unloading <https://github.com/xonsh/xonsh/issues/4541>`_
with functions ``_load_xontrib_(xsh: XonshSession, **kwargs) -> dict``,
``_unload_xontrib_(xsh: XonshSession, **kwargs) -> None`` defined in their module.
`Updated doc <https://xon.sh/tutorial_xontrib.html>`_
* Added a special '$LAST_RETURN_CODE' environment variable to access the return code of the last issued command. (Only set during interactive use).
* New prompt-customization fields: 'last_return_code_if_nonzero', 'last_return_code'.
* Documented the HISTCONTROL ignorespace option

**Changed:**

* ![] now returns a HiddenCommandPipeline when run with a background command (e.g. `![sleep 10 &]`)
* Extended `whole_word_jumping` xontrib with matching bindings for
`delete` and `backspace`. The `XONSH_WHOLE_WORD_CTRL_BKSP` environment
variable can be set to `False` to avoid binding `control+backspace` in
incompatible terminals.
* The default prompt (on unix-systems) now includes a red [<errorcode>] field in case a command failed.
* New docs theme ``furo``
* completions from fish are now filter based on the current prefix.

**Removed:**

* xontrib ``prompt_ret_code`` is now removed.
Now the default prompt already shows the last-return-code when the previous command fails.
Please use the new prompt fields ``last_return_code``, ``last_return_code_if_nonzero`` from
the `PR <https://github.com/xonsh/xonsh/pull/4798>`_

**Fixed:**

* Using `fg` for commands started in the background (e.g. `![sleep 10 &]`) now works
* SIGHUP (instead of SIGKILL) is sent to unfinished jobs when exiting the shell. This allows the `nohup` command to work properly.
* `bg` now properly resumes jobs in the background
* ExecAlias now sets the returncode of a command correctly
* Empty/comment-only commands no longer get added to the history
* On prompt-toolkit, when there is a job like `sleep 500 &` running in the background, pressing Ctrl+D twice to force quit now works properly
* Environment Variables are now completed correctly when in quotes
* Silence spurious errors on exit due to out-of-order cleanup

**Authors:**

* Gil Forsyth
* Noortheen Raja
* Peter Ye
* dev2718
* dependabot[bot]
* Stefano Rivera
* Naveen
* jbw3
* Italo Cunha
* Timmy Welch

0.12.4

====================

**Authors:**

* Gil Forsyth

0.12.3

====================

**Changed:**

* fix: remove os.path.basename from _get_git_branch()
* now 3rd party xontrib list is maintained at `Awesome Xontribs <https://github.com/xonsh/awesome-xontribs/>`_ page.
Going forward, new contributions will be updated here, making it not depending on `the xonsh release <https://github.com/xonsh/xonsh/issues/4679>`_.

**Removed:**

* Removed Python 3.7 support following `NEP0029 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`_

**Fixed:**

* Dictionaries are now pretty-printed with their items in the correct order

**Authors:**

* Gil Forsyth
* Noortheen Raja
* Peter Ye
* doronz88
* Stefano Rivera

Page 4 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.