Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tristanpoland/gcd
Git Change Directory
https://github.com/tristanpoland/gcd
Last synced: 26 days ago
JSON representation
Git Change Directory
- Host: GitHub
- URL: https://github.com/tristanpoland/gcd
- Owner: tristanpoland
- License: apache-2.0
- Created: 2024-11-08T00:46:38.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-08T01:27:49.000Z (about 2 months ago)
- Last Synced: 2024-11-08T02:19:32.472Z (about 2 months ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GCD - Git Repository Quick Navigation Tool
GCD is a powerful command-line tool written in Rust designed to make navigating your Git repositories fast and easy. By indexing your repositories and allowing fuzzy search, GCD lets you jump into any project folder with minimal keystrokes. Shell integration is available for all major shells, so you can use it seamlessly in your preferred environment.
---
## π Features
- **Lightning-Fast Navigation:** Instantly navigate to your Git repositories with fuzzy search matching.
- **Shell Integration:** Supports Bash, Zsh, Fish, and PowerShell for an uninterrupted terminal experience.
- **Intuitive Commands:** Just type `gcd` with a repository name pattern to find and move to your project in seconds.## π Installation
### Quick install
```bash
grip registry add github.com/tristanpoland/My-Grip-Registry
grip install gcd
```### Source Install
1. **Clone the repository** and navigate to the project directory:
```bash
git clone https://github.com/tristanpoland/GCD
cd gcd
```2. **Build the project** using Cargo:
```bash
cargo build --release
```3. **Install GCD** by moving the binary to a directory in your PATH:
```bash
cp target/release/gcd /usr/local/bin
```## π§ Shell Integration
To use `gcd` seamlessly from any shell, you can install shell integration for your preferred shell:
### Bash, Zsh, Fish, and PowerShell
```bash
gcd install
```Replace `` with `bash`, `zsh`, `fish`, or `ps` for PowerShell. The integration script will be automatically added to your shell's configuration file.
## π₯οΈ Usage
### Index Your Repositories
First, tell `gcd` where to find your Git repositories:
```bash
gcd index /path/to/your/repositories
```### Navigate to a Repository
To navigate, simply provide a name pattern:
```bash
gcd
```If thereβs a match, `gcd` will take you directly to that repository!
## π Examples
1. **Indexing repositories:**
```bash
gcd index ~/projects
```
This command will scan your `~/projects` folder for Git repositories and save them in GCDβs index.2. **Navigating to a repository:**
```bash
gcd awesome-project
```
GCD will find and change to the directory of `awesome-project` if it exists.## π οΈ Configuration
GCD stores its configuration and index in `~/.config/gcd/config.json`. You can manually edit this file if needed, but itβs usually managed automatically.
## π€ Contributing
1. **Fork the repository** and create your branch.
2. **Implement your feature or fix**.
3. **Submit a pull request**.We welcome contributions! Please check the issues section for suggestions or bugs to help fix.
## π License
This project is licensed under the MIT License.
---
β¨ Happy Navigating!