Find project root.
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.
Features
- Fancy error message and colorful output.
- Cross-platform and single binary.
Usage
)
Integration With Other Tools
Fish Shell
#
# 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
Installation
From Binaries
The release page includes pre-compiled binaries for GNU/Linux, macOS, and Windows.
From Source
Using cargo-binstall
Using Rust's package manager cargo:
Development
# Build
# Run unit tests and integration tests
# Install
Contributing
To learn more read the development guide
Origin of The Name
The term "toor" is a whimsical variation of "root".