Metadata-Version: 2.1
Name: xontrib-back2dir
Version: 0.0.4
Summary: Back to directory.
Home-page: https://github.com/anki-code/xontrib-back2dir
Author: anki-code
Author-email: anki-code@no.no
License: MIT
Project-URL: Documentation, https://github.com/anki-code/xontrib-back2dir/blob/master/README.md
Project-URL: Code, https://github.com/anki-code/xontrib-back2dir
Project-URL: Issue tracker, https://github.com/anki-code/xontrib-back2dir/issues
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: System :: Shells
Classifier: Topic :: System :: System Shells
Classifier: Topic :: Terminals
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: xonsh

<p align="center">
Back to the latest used directory when starting xonsh shell.
</p>

<p align="center">  
If you like the idea click ⭐ on the repo and stay tuned.
</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
```

## Credits

This package was created with [xontrib cookiecutter template](https://github.com/xonsh/xontrib-cookiecutter).


