Skip to content

cristeahub/al

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

al

A simple CLI tool for managing shell aliases, written in OCaml.

Features

  • Create, list, and delete shell aliases
  • Aliases are automatically available after adding or deleting (no manual sourcing)
  • Aliases persist across shell sessions
  • Works with both bash and zsh

Requirements

  • OCaml with opam
  • dune build system
  • yojson library (opam install yojson)

Installation

./install.sh

The installer will:

  1. Build the project
  2. Install the binary to ~/.local/bin/
  3. Ask to add shell integration to your .zshrc or .bashrc

After installation, restart your shell or run:

source ~/.zshrc  # or ~/.bashrc

Usage

# Add an alias
al add ll 'ls -la'
al add gs 'git status'
al add gp 'git push'

# List all aliases
al list

# Delete an alias
al delete ll

# Show help
al help

How it works

  • Aliases are stored in ~/.config/alias-manager/aliases.json
  • A shell script is generated at ~/.config/alias-manager/aliases.sh
  • The al shell function wraps the binary and auto-sources aliases after changes

License

MIT

About

A simple CLI tool for managing shell aliases

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors