{"id":13343226,"url":"https://github.com/xonsh/xontrib-bashisms","last_synced_at":"2025-04-14T00:36:11.616Z","repository":{"id":65926866,"uuid":"601671744","full_name":"xonsh/xontrib-bashisms","owner":"xonsh","description":"Bash-like interactive mode extensions for the xonsh shell. It's made mostly for education reasons.","archived":false,"fork":false,"pushed_at":"2025-03-31T17:23:11.000Z","size":32,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-04T02:35:15.031Z","etag":null,"topics":["bash","xonsh","xontrib"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xonsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-14T15:14:17.000Z","updated_at":"2024-08-06T11:45:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0d96703-7c78-45b0-a4cf-8363b9a06a06","html_url":"https://github.com/xonsh/xontrib-bashisms","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":"0.33333333333333337","last_synced_commit":"1479717a627c8e671ce3cdcfbebebf6212c6f517"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xonsh%2Fxontrib-bashisms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xonsh%2Fxontrib-bashisms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xonsh%2Fxontrib-bashisms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xonsh%2Fxontrib-bashisms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xonsh","download_url":"https://codeload.github.com/xonsh/xontrib-bashisms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248802880,"owners_count":21163937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","xonsh","xontrib"],"created_at":"2024-07-29T19:30:42.762Z","updated_at":"2025-04-14T00:36:11.597Z","avatar_url":"https://github.com/xonsh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\nBash-like interactive mode extensions for the xonsh shell.\n\u003c/p\u003e\n\n## Note\n\nWe're not recommend to use this xontrib (see issues section). Use it carefully only if you have very strong muscle memory after hundred of years using Bash or for the education reasons and demonstration how agile is xonsh shell.\n\n## Installation\n\nTo install use pip:\n\n```bash\nxpip install xontrib-bashisms\n# or: xpip install -U git+https://github.com/xonsh/xontrib-bashisms\n```\n\n## Usage\n```bash\nxontrib load bashisms\n```\n\nEnables additional limited Bash-like syntax and commands while at the interactive command prompt:\n\n| Added  | Meaning  |\n|---|---|\n| `!!`  | Get the last command.  |\n| `!^`  | Get the first argument from the preceding command.  |\n| `!$`  | Get the last argument from the preceding command.  |\n| `!*`  | Get all argument from the preceding command.  |\n| `alias`  | Add alias.  |\n| `export NAME=Peter`  | Setting an environment variable.  |\n| `shopt -s dotglob`  | Globbing files with * or ** will also match dotfiles, or those \"hidden\" files.  |\n| `complete`  | Show list of completers.  |\n| `set \u003c-e/+e\u003e`  |  Cause a failure after a non-zero return code.  |\n| `set \u003c-x/+x\u003e` | Turns on tracing of source code lines during execution. |\n| `unset NAME`  | Unsetting/deleting an environment variable.  |\n\nSee also [Bash to Xonsh Translation Guide](https://xon.sh/bash_to_xsh.html).\n\n## Known issues\n\nThe `xontrib-bashisms` appeared in the beginning of xonsh history as part of the default xontribs. It has issues and we recommend to use [xontrib-sh](https://github.com/anki-code/xontrib-sh) instead.\n\n### Threading issues\n\nBecause of xontrib-bashisms sets [`THREAD_SUBPROCS=False`](https://xon.sh/envvars.html#thread-subprocs) there are issues around the threading could appear. If you're using bashisms and faced with issues try the same in `xonsh --no-rc` mode before reporting the issue.\n\n### Only interactive mode\n\nThe xontrib features are implemented as [on_precommand events](https://xon.sh/events.html#on-precommand) and\nthese additions do not affect the xonsh language when run as script.\nThat said, you might find them useful if you have strong muscle memory in interactive mode.\n\n## Debug\n\nThis xontrib may modify user command line input to implement its behavior.\nTo see the modifications as they are applied (in unified diffformat), please set [`$XONSH_DEBUG`](https://xon.sh/envvars.html#xonsh-debug) to `2` or higher.\n\n## See also\n\n* [Bash to Xonsh Translation Guide](https://xon.sh/bash_to_xsh.html)\n* [xontrib-sh](https://github.com/anki-code/xontrib-sh) - Paste and run commands from bash, zsh, fish, tcsh in xonsh shell.\n\n## Credits\n\nThis package was created with [xontrib template](https://github.com/xonsh/xontrib-template).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxonsh%2Fxontrib-bashisms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxonsh%2Fxontrib-bashisms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxonsh%2Fxontrib-bashisms/lists"}