{"id":13638179,"url":"https://github.com/anki-code/xontrib-back2dir","last_synced_at":"2025-03-16T19:30:18.689Z","repository":{"id":56529145,"uuid":"304937927","full_name":"anki-code/xontrib-back2dir","owner":"anki-code","description":"Return to the most recently used directory when starting the xonsh shell.","archived":false,"fork":false,"pushed_at":"2024-07-01T18:46:52.000Z","size":26,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T11:51:19.944Z","etag":null,"topics":["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/anki-code.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},"funding":{"custom":["https://github.com/anki-code","https://www.buymeacoffee.com/xxh","https://github.com/xonsh/xonsh#the-xonsh-shell-community"]}},"created_at":"2020-10-17T17:57:54.000Z","updated_at":"2025-02-04T10:49:15.000Z","dependencies_parsed_at":"2024-10-27T11:09:07.132Z","dependency_job_id":"40031e72-3ee6-4af0-a72c-395e2ad6fcb8","html_url":"https://github.com/anki-code/xontrib-back2dir","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":0.4117647058823529,"last_synced_commit":"5e501cad281ab90ff2a9ac9ba2ade868746be0b0"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fxontrib-back2dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fxontrib-back2dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fxontrib-back2dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fxontrib-back2dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anki-code","download_url":"https://codeload.github.com/anki-code/xontrib-back2dir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243664222,"owners_count":20327445,"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":["xonsh","xontrib"],"created_at":"2024-08-02T01:00:41.238Z","updated_at":"2025-03-16T19:30:18.389Z","avatar_url":"https://github.com/anki-code.png","language":"Python","funding_links":["https://github.com/anki-code","https://www.buymeacoffee.com/xxh","https://github.com/xonsh/xonsh#the-xonsh-shell-community"],"categories":["Directory Navigation"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\nReturn to the most recently used directory when starting the xonsh shell. \n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e  \nIf you like the idea click ⭐ on the repo and and \u003ca href=\"https://twitter.com/intent/tweet?text=Nice%20xontrib%20for%20the%20xonsh%20shell!\u0026url=https://github.com/anki-code/xontrib-back2dir\" target=\"_blank\"\u003etweet\u003c/a\u003e.\n\u003c/p\u003e\n\n\n## Installation\n\nTo install use pip:\n\n```bash\nxpip install xontrib-back2dir\n# or: xpip install -U git+https://github.com/anki-code/xontrib-back2dir\necho \"xontrib load back2dir\" \u003e ~/.xonshrc\n```\n\n## Usage\n\nNo additional actions needed. The xontrib just saves the latest directory and uses it when\nxonsh starts:\n\n```bash\nbash   ~     $ xonsh\nxonsh  ~     $ cd /etc\nxonsh  /etc  $ exit     # the latest directory is /etc\n\nbash   ~     $ xonsh\nxonsh  /etc  $ # the latest directory\n```\n\nIf you run xonsh not from the `$HOME` directory the latest directory will be ignored:\n\n```bash\nbash   ~     $ cd /tmp\nbash   /tmp  $ xonsh\nxonsh  /tmp  $ # latest directory ignored\n```\n\n## Links \n* This package is the part of [rc-awesome](https://github.com/anki-code/xontrib-rc-awesome) - awesome snippets of code for xonshrc in xonsh shell.\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%2Fanki-code%2Fxontrib-back2dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanki-code%2Fxontrib-back2dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanki-code%2Fxontrib-back2dir/lists"}