Crates.io | toor |
lib.rs | toor |
version | 0.3.0 |
source | src |
created_at | 2023-11-30 05:55:48.790472 |
updated_at | 2024-01-09 02:47:20.730189 |
description | Find project root |
homepage | |
repository | https://github.com/azzamsa/toor |
max_upload_size | |
id | 1053890 |
size | 52,410 |
Say goodbye to the tedious dance of cd ..; cd..; cd.. (10x)
or convoluted aliases like ..
, ....
, ........
.
Embrace simplicity with just one command -- introducing toor
. Bind it to your favorite shell, and voila!
A single r
keystroke transports you straight to the root directory. Effortlessly elevate your command line experience with a touch of magic.
🦄 toor --help
rust on master is 📦 v0.1.0 via 🦀 v1.74.0
🦄 toor
/home/user/playground/rust
~/playground
🦄 toor
Error: toor::no_project_root (link)
× Project root is not found.
help: Make sure the project root exists.
#
# toor
function r # root
set project_root (toor 2>/dev/null)
if test -n "$project_root"
# If successful, change to the project root directory
cd "$project_root"
echo "Changed to project root: $project_root"
else
# If not successful, stay in current directory
echo "Project root not found. I dont' go anywhere 📍"
end
end
The release page includes pre-compiled binaries for GNU/Linux, macOS, and Windows.
Using cargo-binstall
$ cargo binstall toor
Using Rust's package manager cargo:
$ cargo install toor
git clone https://github.com/azzamsa/toor
# Build
cd toor
cargo build
# Run unit tests and integration tests
cargo test
# Install
cargo install --path .
To learn more read the development guide
The term "toor" is a whimsical variation of "root".