{"id":50685513,"url":"https://github.com/nahoj/xontrib-take","last_synced_at":"2026-06-08T22:32:45.367Z","repository":{"id":354010977,"uuid":"1221577813","full_name":"nahoj/xontrib-take","owner":"nahoj","description":"A single Xonsh command to create and cd into a dir, or into a fetched git repo or archive file. A port of Oh My Zsh's take command.","archived":false,"fork":false,"pushed_at":"2026-05-16T17:04:04.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-16T19:14:09.908Z","etag":null,"topics":["command-line-tool","git","utility","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/nahoj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":"https://github.com/xonsh/xonsh#the-xonsh-shell-community"}},"created_at":"2026-04-26T12:04:58.000Z","updated_at":"2026-05-16T17:04:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nahoj/xontrib-take","commit_stats":null,"previous_names":["nahoj/xontrib-take"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nahoj/xontrib-take","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahoj%2Fxontrib-take","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahoj%2Fxontrib-take/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahoj%2Fxontrib-take/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahoj%2Fxontrib-take/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nahoj","download_url":"https://codeload.github.com/nahoj/xontrib-take/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahoj%2Fxontrib-take/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34083848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["command-line-tool","git","utility","xonsh","xontrib"],"created_at":"2026-06-08T22:32:43.834Z","updated_at":"2026-06-08T22:32:45.360Z","avatar_url":"https://github.com/nahoj.png","language":"Python","funding_links":["https://github.com/xonsh/xonsh#the-xonsh-shell-community"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\nA single Xonsh command to create and cd into a directory, or into a fetched git repo or archive file. A port of Oh My Zsh's take command.\n\nI reckon [the source](https://github.com/nahoj/xontrib-take/blob/main/xontrib/take.xsh) is a good showcase of mixing Python and shell commands in Xonsh.\n\n**Status:** It works. Issues and PRs for additional features are welcome!\n\nIf you like the idea click ⭐ on the repo and \u003ca href=\"https://x.com/intent/tweet?text=Nice%20xontrib%20for%20the%20xonsh%20shell!\u0026url=https://github.com/nahoj/xontrib-take\" target=\"_blank\"\u003etweet\u003c/a\u003e.\n\u003c/div\u003e\n\n## Installation\n\nI haven't uploaded this to PyPi, I will if anyone expresses interest.\n\n```xsh\nxpip install -U git+https://github.com/nahoj/xontrib-take\n```\n\nThen:\n\n```xsh\nxontrib load take\n```\n\n## Examples\n\n```xsh\n~/test @ ls\n~/test @ take foo/bar\n~/test/foo/bar @\n```\n\n```xsh\n~/test @ take https://github.com/nahoj/xontrib-take.git\nClonage dans 'xontrib-take'...\n...\n…/xontrib-take main @\n```\n\n```xsh\n~/test @ take https://github.com/nahoj/xontrib-take/archive/refs/heads/main.zip\n...\nArchive:  /tmp/tmp.n2rudhhtF0\n   creating: ./xontrib-take-main/\n...\n~/test/xontrib-take-main @\n```\n\n## Development\n\n- activate [pre-commit](https://github.com/pre-commit/pre-commit) hooks\n```sh\n# install pre-commit plugins and activate the commit hook\npre-commit install\npre-commit autoupdate\n```\n\n## Releasing your package\n\n- Bump the version of your package.\n- Create a GitHub release (The release notes are automatically generated as a draft release after each push).\n- And publish with `poetry publish --build` or `twine`\n\n## Credits\n\nThis xontrib is a direct translation of Oh My Zsh's handy `take` command, inspired by `mkcd` aliases around the world :)\n\nThis package was created with [xontrib template](https://github.com/xonsh/xontrib-template).\n\n\n--------------------\n\n## Xontrib Promotion (DO and REMOVE THIS SECTION)\n\n* Publish your xontrib to PyPi via Github Actions and users can install your xontrib via `xpip install xontrib-myxontrib`. Easiest way to achieve it is to use Github Actions. Register to https://pypi.org/ and [create API token](https://pypi.org/help/#apitoken). Go to repository \"Settings\" - \"Secrets\" and your PyPI API token as `PYPI_API_TOKEN` as a \"Repository Secret\". Now when you create new Release the Github Actions will publish the xontrib to PyPi automatically. Release status will be in Actions sction. See also `.github/workflows/release.yml`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnahoj%2Fxontrib-take","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnahoj%2Fxontrib-take","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnahoj%2Fxontrib-take/lists"}