Skip to content

ricky0123/algo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algo: Bash Alias Manager

Algo allows you to configure multi-level bash aliases through yaml. It reads yaml in from stdin and writes bash source code to stdout.

Installation

go install github.com/ricky0123/algo@latest

Example usage

Create a file ~/.algo.aliases.yml with the following contents

# ~/.algo.aliases.yml

cm: chemzoi

g:
    $: git
    s: status
    q: commit -am "$(date)" && git push

Then add this line to your ~/.bashrc:

# ~/.bashrc

if [ -f ~/.algo.aliases.yml ] && command -v algo &>/dev/null
then
    source <(cat ~/.algo.aliases.yml | algo) &> /dev/null
fi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published