A CLI tool to manage your shell aliases
Find a file
Josh 84cfbbd0ef
Some checks failed
test / test (push) Failing after 22s
ah
2024-12-14 01:49:40 -06:00
.forgejo/workflows ah 2024-12-14 01:49:40 -06:00
src remove unused import 2024-12-14 00:29:32 -06:00
.gitignore initial commit 2024-12-13 20:02:28 -06:00
Cargo.lock initial commit 2024-12-13 20:02:28 -06:00
Cargo.toml initial commit 2024-12-13 20:02:28 -06:00
Justfile initial commit 2024-12-13 20:02:28 -06:00
LICENSE initial commit 2024-12-13 20:02:28 -06:00
README.md reword OS support 2024-12-14 01:16:16 -06:00

shadow

A CLI tool to manage your shell aliases through symlinks.

Requirements

  • Rust toolchain
    • The latest is recommended, but any recent version should hopefully work
  • Written with cross-platform compatibility in mind, aiming to support all major operating systems (Linux, macOS, Windows).

Installation

Install directly from the repository:

cargo install --git https://git.joshthomas.dev/josh/shadow

Usage

Adding a shadow

Create a new alias by shadowing an existing command:

shadow add ls exa  # 'ls' will now execute 'exa'

You can specify a custom installation directory:

shadow add --bin-path ~/.local/bin ls exa

Removing a shadow

Remove an existing shadow to restore the original command:

shadow remove ls

Listing shadows

View all active shadows:

shadow list