xontrib-back2dir


Namexontrib-back2dir JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/anki-code/xontrib-back2dir
SummaryReturn to the most recently used directory when starting the xonsh shell.
upload_time2024-07-01 18:47:14
maintainerNone
docs_urlNone
authoranki-code
requires_python>=3.6
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
Return to the most recently used directory when starting the xonsh shell. 
</p>

<p align="center">  
If you like the idea click ⭐ on the repo and and <a href="https://twitter.com/intent/tweet?text=Nice%20xontrib%20for%20the%20xonsh%20shell!&url=https://github.com/anki-code/xontrib-back2dir" target="_blank">tweet</a>.
</p>


## Installation

To install use pip:

```bash
xpip install xontrib-back2dir
# or: xpip install -U git+https://github.com/anki-code/xontrib-back2dir
echo "xontrib load back2dir" > ~/.xonshrc
```

## Usage

No additional actions needed. The xontrib just saves the latest directory and uses it when
xonsh starts:

```bash
bash   ~     $ xonsh
xonsh  ~     $ cd /etc
xonsh  /etc  $ exit     # the latest directory is /etc

bash   ~     $ xonsh
xonsh  /etc  $ # the latest directory
```

If you run xonsh not from the `$HOME` directory the latest directory will be ignored:

```bash
bash   ~     $ cd /tmp
bash   /tmp  $ xonsh
xonsh  /tmp  $ # latest directory ignored
```

## Links 
* 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.
* This package is the part of [ergopack](https://github.com/anki-code/xontrib-ergopack) - the pack of ergonomic xontribs.
* This package was created with [xontrib cookiecutter template](https://github.com/xonsh/xontrib-cookiecutter).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/anki-code/xontrib-back2dir",
    "name": "xontrib-back2dir",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "anki-code",
    "author_email": "anki-code@no.no",
    "download_url": "https://files.pythonhosted.org/packages/91/cc/6b452a0f83af0700265c78574fff4cfab9c5f74cae190c6e7fb310751fce/xontrib_back2dir-0.1.3.tar.gz",
    "platform": "any",
    "description": "<p align=\"center\">\nReturn to the most recently used directory when starting the xonsh shell. \n</p>\n\n<p align=\"center\">  \nIf you like the idea click \u2b50 on the repo and and <a href=\"https://twitter.com/intent/tweet?text=Nice%20xontrib%20for%20the%20xonsh%20shell!&url=https://github.com/anki-code/xontrib-back2dir\" target=\"_blank\">tweet</a>.\n</p>\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\" > ~/.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",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Return to the most recently used directory when starting the xonsh shell.",
    "version": "0.1.3",
    "project_urls": {
        "Code": "https://github.com/anki-code/xontrib-back2dir",
        "Documentation": "https://github.com/anki-code/xontrib-back2dir/blob/master/README.md",
        "Homepage": "https://github.com/anki-code/xontrib-back2dir",
        "Issue tracker": "https://github.com/anki-code/xontrib-back2dir/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21792b148597419b80f72312c5b69fc34535764ddaf8a47ccbe2e3558f9b3d5a",
                "md5": "ca630294cf1b7d8a3f09b43a3bbd9ce3",
                "sha256": "014aa8f8ec8965e720ff8fd40664fb17e57fb7243078b8d5fc6d29a2f74f1ce5"
            },
            "downloads": -1,
            "filename": "xontrib_back2dir-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ca630294cf1b7d8a3f09b43a3bbd9ce3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3376,
            "upload_time": "2024-07-01T18:47:12",
            "upload_time_iso_8601": "2024-07-01T18:47:12.551556Z",
            "url": "https://files.pythonhosted.org/packages/21/79/2b148597419b80f72312c5b69fc34535764ddaf8a47ccbe2e3558f9b3d5a/xontrib_back2dir-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "91cc6b452a0f83af0700265c78574fff4cfab9c5f74cae190c6e7fb310751fce",
                "md5": "22bd96e72db8a6c7a91ce5787b8f3284",
                "sha256": "288adbf8918ac4604c65d5e9dcf8787044d6fd917fec0b628c0f9ff510ff71a2"
            },
            "downloads": -1,
            "filename": "xontrib_back2dir-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "22bd96e72db8a6c7a91ce5787b8f3284",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3193,
            "upload_time": "2024-07-01T18:47:14",
            "upload_time_iso_8601": "2024-07-01T18:47:14.313218Z",
            "url": "https://files.pythonhosted.org/packages/91/cc/6b452a0f83af0700265c78574fff4cfab9c5f74cae190c6e7fb310751fce/xontrib_back2dir-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-01 18:47:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "anki-code",
    "github_project": "xontrib-back2dir",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "xontrib-back2dir"
}
        
Elapsed time: 0.63275s