Installation Guide

System Requirements

  • Rust toolchain (for installation via cargo)

  • Linux operating system

  • Supported shell (bash, zsh, fish, tcsh, or ksh)

Installation Methods

Using Cargo

The recommended way to install pathmaster is through cargo:

cargo install pathmaster

This will:

  1. Download the latest version

  2. Compile the source code

  3. Install the binary in your cargo bin directory

Building from Source

  1. Clone the repository:

git clone https://github.com/jwliles/pathmaster.git
cd pathmaster
  1. Build the release version:

cargo build --release
  1. The binary will be available at:

./target/release/pathmaster
  1. Optionally, install system-wide:

cargo install --path .

Verifying Installation

After installation, verify pathmaster is working:

pathmaster --version
pathmaster --help

Shell Integration

Pathmaster automatically detects and configures your shell:

Supported Shell Configurations

  • bash: ~/.bashrc

  • zsh: ~/.zshrc

  • fish: ~/.config/fish/config.fish

  • tcsh: ~/.tcshrc

  • ksh: ~/.kshrc

Initial Setup

No manual configuration is needed. Pathmaster will:

  1. Detect your current shell

  2. Locate the appropriate configuration file

  3. Make necessary updates automatically

  4. Create backups before any modifications

Troubleshooting Installation

Common Issues

  1. Cargo not found

    • Solution: Install Rust and Cargo from https://rustup.rs/

  2. Permission errors

    • Solution: Check directory permissions or use sudo for system directories

  3. Shell not detected

    • Solution: Ensure SHELL environment variable is set correctly

Getting Help