Skip to content

selamanapps/tolo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿš€ Tolo

Go Version License Platform Size

Lightning-fast command alias manager for the modern terminal

Install โ€ข Features โ€ข Usage โ€ข Contributing


โœจ Features

  • ๐Ÿš€ Blazing Fast - Written in Go, executes in milliseconds
  • ๐Ÿ’พ Lightweight - Only ~2MB binary, minimal RAM footprint
  • ๐ŸŽจ Beautiful UI - Colorful, icon-rich terminal output
  • ๐Ÿ” Search - Find aliases instantly with fuzzy search
  • ๐Ÿ”„ Update - Modify aliases on the fly
  • ๐Ÿ—‘๏ธ Delete - Remove unwanted aliases
  • ๐Ÿ“‹ List - View all saved aliases in a formatted table
  • โšก Shortcuts - Use short commands like ls, rm, s, r
  • ๐Ÿ”ง Shell Completion - Bash and Zsh auto-completion
  • ๐Ÿ“ฆ Single Binary - No dependencies, just copy and run
  • ๐ŸŒ Cross-platform - Linux, macOS, and Windows support

๐ŸŽฏ Why Tolo?

Tired of typing long SSH commands, gcloud commands, or complex terminal commands? Tolo saves them as simple aliases you can run with a single command.

Before:

ssh user@192.168.1.10 -p 2222 -i ~/.ssh/mykey.pem

After:

tolo run myserver
# or shorter
tolo r myserver

๐Ÿ“ฆ Installation

Quick Install (Linux/macOS)

curl -fsSL https://raw.githubusercontent.com/selamanapps/tolo/main/install.sh | bash

Manual Install

Download Binary

Visit the Releases page and download the binary for your platform.

# Linux
wget https://github.com/selamanapps/tolo/releases/download/v1.0.0/tolo-linux-amd64
sudo cp tolo-linux-amd64 /usr/local/bin/tolo
sudo chmod +x /usr/local/bin/tolo

# macOS
curl -L https://github.com/selamanapps/tolo/releases/download/v1.0.0/tolo-darwin-amd64 -o tolo
sudo cp tolo /usr/local/bin/
sudo chmod +x /usr/local/bin/tolo

Build from Source

git clone https://github.com/selamanapps/tolo.git
cd tolo
go build -ldflags="-s -w" -o tolo
sudo cp tolo /usr/local/bin/

Shell Completion

Enable auto-completion for your shell:

Bash:

echo 'source <(tolo --bash-completion)' >> ~/.bashrc
source ~/.bashrc

Zsh:

echo 'source <(tolo --zsh-completion)' >> ~/.zshrc
source ~/.zshrc

๐ŸŽฎ Usage

Basic Commands

# Save a new alias
tolo save server1:ssh user@192.168.1.10

# Run a saved alias
tolo run server1

# List all aliases
tolo list

# Delete an alias
tolo delete server1

# Search aliases
tolo search ssh

Shortcuts (Power User Commands)

# Short aliases for all commands
tolo s   # save
tolo r   # run
tolo u   # update
tolo d   # delete (also: del, rm)
tolo ls  # list (also: l)
tolo sh  # show (also: info)
tolo se  # search (also: find)

Examples

SSH Connections

# Save SSH connection
tolo save myserver:ssh user@192.168.1.10

# Use it
tolo r myserver

Cloud Commands

# Save gcloud command
tolo save cloud-server:gcloud compute ssh --zone us-central1-a instance-1 --project my-project

# Execute it
tolo r cloud-server

Docker Commands

# Save complex docker command
tolo save dev:docker-compose up -d --build

# Run it
tolo r dev

Update Existing Alias

# Update to change connection details
tolo u myserver:ssh admin@192.168.1.20

Show Alias Details

tolo show mypc

Search Aliases

# Find all SSH aliases
tolo se ssh

# Find all docker aliases
tolo find docker

๐Ÿ“ธ Screenshots

List Command

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘                    ๐Ÿ“‹ Saved Aliases                            โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

  1  myserver   โ†’  ssh user@192.168.1.10
  2  gcloud     โ†’  gcloud compute ssh instance-1 --project my-project
  3  dev        โ†’  docker-compose up -d --build

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Total: 3

Save Command

๐Ÿ’พ  Alias saved successfully

Alias:   myserver
Command: ssh user@192.168.1.10
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

๐Ÿ› ๏ธ Development

Build

# Build for current platform
make build

# Build for all platforms
make build-all

# Install to system
make install

Project Structure

tolo/
โ”œโ”€โ”€ cmd/              # Command handlers
โ”œโ”€โ”€ storage/          # JSON file operations
โ”œโ”€โ”€ executor/         # Command execution
โ”œโ”€โ”€ pretty/           # Terminal formatting
โ”œโ”€โ”€ completion/       # Shell completions
โ”œโ”€โ”€ main.go          # Entry point
โ”œโ”€โ”€ Makefile         # Build automation
โ””โ”€โ”€ install.sh       # Installation script

๐Ÿค Contributing

Contributions are welcome! Please read CONTRIBUTING.md for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ Roadmap

  • Export/Import aliases
  • Alias categories/tags
  • Configuration file support
  • Interactive mode
  • Alias history/undo
  • Sync across devices
  • GUI application

๐Ÿง Requirements

  • Go 1.21 or higher (for building from source)
  • Linux, macOS, or Windows

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Inspired by tools like alias and gnu stow
  • Built with Go
  • Icons and colors for better UX

๐Ÿ“ž Support


Made with โค๏ธ at Zemenawi Lab

โฌ† Back to top

About

Lightning-fast command alias manager for the modern terminal

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors