pypi xonsh 0.21.0
v0.21.0

latest releases: 0.21.2, 0.21.1
one day ago

0.21.0 (2025-12-10)

Features

  • Added @ as a global object that provides easy access to @.env (xonsh env), @.imp(inline importer), @.lastcmd (last executed command pipeline)
    e.g. with @.env.swap(TIME=@.imp.time.time()): $[echo $TIME] (#5956) (64e3a3c, @shevtsova)
  • Added support for multiline shebang (guix fixed) (#5957) (e9e0055, @anki-code)
  • Added support for using a p-string as a context manager to temporarily change the working directory
    e.g., with p'~/test'.mkdir().cd(): $[pwd] (d9a14c1, @anki-code)
  • Allow on_command_not_found handlers to return replacement commands (#5952) (#5962) (14d9686, @EclipseAditya)

Bug Fixes

Documentation

Deprecated

  • $AUTO_SUGGEST is now deprecated in favour of $XONSH_PROMPT_AUTO_SUGGEST (1e5bda4, @anki-code )

Don't miss a new xonsh release

NewReleases is sending notifications on new releases.