A tool to temporarily save and go to a working directory
Project description
twd-m4sc0
twd-m4sc0 is a command-line tool that allows you to temporarily save a working directory and easily navigate back to it. It's designed for developers and all users who frequently need to switch between directories in the terminal.
Features
- Save the current working directory.
- Go back to the saved directory.
- List the saved directory.
- Integrates with your shell for seamless directory management.
Installation
Installation using pip:
- Install the package from the
pypirepository:
pip install twd-m4sc0
- Add the following line to your
.bashrcor.zshrcto set up the shell function:
eval $(twd --shell)
- Exit and reopen the terminal or reload using:
source ~/.bashrc
# or
source ~/.zshrc
Usage
- Save a directory
twd -s [path]
- Go to the saved directory
twd -g
- List the saved directory
twd -l
### Optional Parameters
#### Simple Output
Simpler output is meant to be for script usage
- Example with simple-output
```bash
user:~/.config $ twd -s --simple-output
/home/user/.config
- Example without simple-output
user:~/.config $ twd -s
Saved TWD to /home/user/.config
Contribution
To set up a dev environment:
- Clone the repo:
git clone https://github.com/m4sc0/twd
cd twd
- Install the package in editable mode using
pip:
pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twd_m4sc0-1.2.0.tar.gz.
File metadata
- Download URL: twd_m4sc0-1.2.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c900fb516b34a537cac9adf0ac3828f0c767ed108c0dfa6424fb24a8deca2c6
|
|
| MD5 |
86c8cfb059278d8ebae9d7911a0fc158
|
|
| BLAKE2b-256 |
7246b12dc7f6e0478bef45b37a5910462d71a247267732d9415e9e07fa2cb6ef
|
File details
Details for the file twd_m4sc0-1.2.0-py3-none-any.whl.
File metadata
- Download URL: twd_m4sc0-1.2.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d81fe28234277f16739f92c96b09ab467bfdf796395461359e94e5dbd982310
|
|
| MD5 |
e3be5c5bd768dde39bc2b8cf887d8244
|
|
| BLAKE2b-256 |
dd432c97b02e054a71691b2b6739ab9b33b455b10984c91ab97c3f647dba14a4
|