Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Building from Source

Build hash shell from source code on any supported platform.

Prerequisites

  • GCC or Clang compiler
  • Make build system
  • Git (for cloning)

Debian/Ubuntu

sudo apt install build-essential git

macOS

Install Xcode Command Line Tools:

xcode-select --install

FreeBSD

pkg install git gmake

Build Steps

# Clone the repository
git clone https://github.com/juliojimenez/hash.git
cd hash

# Build
make

# Install (to /usr/local/bin)
sudo make install

Build Options

Debug Build

Build with debug symbols:

make debug

Clean Build

Remove build artifacts:

make clean
make

Custom Installation Path

sudo make install PREFIX=/opt/hash

Running Tests

# Setup test framework (first time only)
make test-setup

# Run unit tests
make test

# Run integration tests
./test.sh

Verify Installation

hash-shell --version
hash-shell

Uninstall

sudo make uninstall

Development

For development setup, see the Contributing Guide.