{"id":13638351,"url":"https://github.com/Granitosaurus/xonsh-autoxsh","last_synced_at":"2025-04-19T17:33:42.883Z","repository":{"id":48307778,"uuid":"62055813","full_name":"Granitosaurus/xonsh-autoxsh","owner":"Granitosaurus","description":"Automatically execute scripts for directories in Xonsh Shell.","archived":false,"fork":false,"pushed_at":"2021-08-02T11:55:20.000Z","size":26,"stargazers_count":15,"open_issues_count":5,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-17T03:11:46.289Z","etag":null,"topics":["shell","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Granitosaurus.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}},"created_at":"2016-06-27T12:51:33.000Z","updated_at":"2024-02-20T23:27:11.000Z","dependencies_parsed_at":"2022-09-10T04:23:29.586Z","dependency_job_id":null,"html_url":"https://github.com/Granitosaurus/xonsh-autoxsh","commit_stats":null,"previous_names":["granitas/xonsh-autoxsh"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Granitosaurus%2Fxonsh-autoxsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Granitosaurus%2Fxonsh-autoxsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Granitosaurus%2Fxonsh-autoxsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Granitosaurus%2Fxonsh-autoxsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Granitosaurus","download_url":"https://codeload.github.com/Granitosaurus/xonsh-autoxsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223805189,"owners_count":17205868,"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":["shell","xonsh","xontrib"],"created_at":"2024-08-02T01:00:44.506Z","updated_at":"2024-11-09T08:31:02.669Z","avatar_url":"https://github.com/Granitosaurus.png","language":"Python","funding_links":[],"categories":["Plugins"],"sub_categories":["Prompt tweaks"],"readme":"# xonsh-autoxsh\n\nAutomatically execution of `.autoxsh` xonsh script after entering (cd-ing) into the directory.\n\n[![PyPi version](https://img.shields.io/pypi/v/xonsh-autoxsh.svg?style=flat-square)](https://pypi.python.org/pypi/xonsh-autoxsh) [![PyPi license](https://img.shields.io/pypi/l/xonsh-autoxsh.svg?style=flat-square)](https://pypi.python.org/pypi/xonsh-autoxsh) [![PyPi license](https://img.shields.io/pypi/pyversions/xonsh-autoxsh.svg?style=flat-square)](https://pypi.python.org/pypi/xonsh-autoxsh)  \n\n## Installation\n```python\npip install xonsh-autoxsh\n# OR: pip install git+https://github.com/Granitas/xonsh-autoxsh\necho 'xontrib load autoxsh' \u003e\u003e ~/.xonshrc\n```\n\n## Use cases\n\n### Run xonsh script after entering (cd-ing) into the directory\n\n```python\nmkdir -p /tmp/dir\necho \"print('it works!')\" \u003e /tmp/dir/.autoxsh\ncd /tmp/dir\n# Unauthorized \".autoxsh\" file found in this directory. Authorize and invoke? (y/n/ignore): y\n# it works!\ncd /\ncd /tmp/dir\n# it works!\n```\n\n### Activate Python virtual environment with vox\n\n```python\nxontrib load vox\nvox new myenv\nmkdir -p /tmp/dir\necho \"vox activate myenv\" \u003e /tmp/dir/.autoxsh\ncd /tmp/dir\n# Activated \"myenv\".\n```\n\n## Links \n* This package is the part of [ergopack](https://github.com/anki-code/xontrib-ergopack) - the pack of ergonomic xontribs.\n* This package was created with [xontrib cookiecutter template](https://github.com/xonsh/xontrib-cookiecutter).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGranitosaurus%2Fxonsh-autoxsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGranitosaurus%2Fxonsh-autoxsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGranitosaurus%2Fxonsh-autoxsh/lists"}