{"id":37142914,"url":"https://github.com/sergiorivas/lazyalias","last_synced_at":"2026-01-14T16:46:47.362Z","repository":{"id":278471080,"uuid":"935646436","full_name":"sergiorivas/lazyalias","owner":"sergiorivas","description":"Interactive CLI tool that manages your frequent commands with YAML config and clipboard support","archived":false,"fork":false,"pushed_at":"2025-08-10T19:13:29.000Z","size":10248,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T19:30:49.832Z","etag":null,"topics":["alias","cli","clipboard","command-line","developer-tools","productivity","shell-commands","shortcut","terminal"],"latest_commit_sha":null,"homepage":"https://github.com/sergiorivas/lazyalias","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergiorivas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-19T19:31:32.000Z","updated_at":"2025-08-10T19:13:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"981201c9-6512-4d60-b4a3-d290d4e4f841","html_url":"https://github.com/sergiorivas/lazyalias","commit_stats":null,"previous_names":["sergiorivas/lazyalias"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/sergiorivas/lazyalias","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiorivas%2Flazyalias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiorivas%2Flazyalias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiorivas%2Flazyalias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiorivas%2Flazyalias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergiorivas","download_url":"https://codeload.github.com/sergiorivas/lazyalias/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiorivas%2Flazyalias/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28426401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alias","cli","clipboard","command-line","developer-tools","productivity","shell-commands","shortcut","terminal"],"created_at":"2026-01-14T16:46:44.555Z","updated_at":"2026-01-14T16:46:47.348Z","avatar_url":"https://github.com/sergiorivas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LazyAlias\n\n\u003e 🚀 A smart command-line tool for managing and executing your frequently used commands across different projects with an interactive menu.\n\n## 📋 Table of Contents\n- [Why LazyAlias?](#-why-lazyalias)\n- [Quick Start](#-quick-start)\n- [Installation](#installation)\n- [Configuration](#-configuration)\n- [Usage](#usage)\n- [Features](#-features)\n- [Shell Integration](#-shell-integration)\n- [Keyboard Shortcuts](#-keyboard-shortcuts)\n- [Troubleshooting](#-troubleshooting)\n- [Contributing](#-contributing)\n\n## 🤔 Why LazyAlias?\n\nTired of remembering and typing long commands for your different projects? LazyAlias solves this by providing:\n\n- 🎯 Quick access to your most-used commands\n- 🎨 Interactive menu for easy command selection\n- 📂 Project-specific command organization\n- ⚡️ Support for command arguments and options\n- 🔄 Automatic directory switching\n- 📋 One-click command execution\n\nWhether you're working with multiple projects or just want to streamline your workflow, LazyAlias makes command execution faster and more intuitive.\n\n## 🚀 Quick Start\n\n```bash\n# Install with Homebrew\nbrew tap sergiorivas/lazyalias https://github.com/sergiorivas/lazyalias\nbrew install sergiorivas/lazyalias/lazyalias\n\n# Or install with Go\ngo install github.com/sergiorivas/lazyalias/cmd/lazyalias@latest\n\n# Create your config file\nmkdir -p ~/.config/lazyalias\ntouch ~/.config/lazyalias/config.yaml\n\n# Run LazyAlias\nlazyalias\n```\n\n## 🔧 Configuration\n\nCreate a config file at `~/.config/lazyalias/config.yaml`. Here's a basic example:\n\n```yaml\nfrontend:\n  folder: \"/projects/frontend\"\n  commands:\n    - name: \"Start Dev Server\"\n      command: \"npm run dev\"\n    - name: \"Build\"\n      command: \"npm run build\"\n    - name: \"Test\"\n      command: \"npm run test\"\n\napi:\n  folder: \"/projects/api\"\n  commands:\n    - name: \"Run Server\"\n      command: \"go run main.go\"\n    - name: \"Build\"\n      command: \"go build -o api\"\n    - name: \"Test\"\n      command: \"go test ./...\"\n```\n\n## Usage\n##### If you're in a project directory\n\n```bash\nlazyalias\n```\nThis will show a menu with the commands configured for that project.\n\n```\n[/projects/frontend]% lazyalias\nWelcome to LAZYALIAS 🎉🎉🎉\nUse the arrow keys to navigate: ↓ ↑ → ←\nSelect Command\n    Start Dev Server\n  👉 Build\n    Test\n    ⬅️ Back to Projects\n--------- Command ----------\nName:           Build\nCommand:        npm run build\n```\n\nAnd then\n\n```\nWelcome to LAZYALIAS 🎉🎉🎉\n• Selected Command: Build\n📋 Command has been copied to clipboard!\n💻 Command to execute:\nnpm run build\n```\n\n##### If you're outside project directories\n```bash\nlazyalias\n```\nThis will first show a menu to select the project, then show its commands. It will automatically change to the project directory before executing the command.\n\n```\n[/projects]% lazyalias\nWelcome to LAZYALIAS 🎉🎉🎉\nUse the arrow keys to navigate: ↓ ↑ → ←\nSelect Project\n  👉 frontend\n    api\n\n--------- Project ----------\nName:            frontend\nCommands:        3 available\nFolder:          /projects/frontend\n```\n\nThen\n\n```\nWelcome to LAZYALIAS 🎉🎉🎉\n• Selected Project: frontend\nUse the arrow keys to navigate: ↓ ↑ → ←\nSelect Command\n    Start Dev Server\n  👉 Build\n    Test\n    ⬅️ Back to Projects\n--------- Command ----------\nName:           Build\nCommand:        npm run build\n```\n\nAnd then\n\n```\nWelcome to LAZYALIAS 🎉🎉🎉\n• Selected Project: frontend\n• Selected Command: Build\nCommand has been copied to clipboard!\ncd '/projects/frontend' \u0026\u0026 npm run build\n```\n\n##### After selecting a command\n- The command will be copied to your clipboard\n- You can paste and execute it in your terminal\n- If you're outside the project directory, the command will include the necessary `cd` command\n\n## With Arguments\nCommands can include interactive arguments that will be prompted when executing the command:\n\n- Use args to define a list of arguments for a command\n- Each argument requires:\n  - `name`: Description of what the argument is for\n  - `options`: Available options for the argument\n      - Use `*` for free text input\n      - Use `|` to separate fixed options (e.g., `option1|option2|option3`)\n- Reference arguments in commands using `$arg_1`, `$arg_2`, etc.\n\nExample `config.yaml`\n```yaml\nfrontend:\n  folder: \"/projects/frontend\"\n  commands:\n    - name: \"Start Dev Server\"\n      command: \"npm run dev\"\n    - name: \"Build\"\n      command: \"npm run build\"\n    - name: \"Test with Coverage\"\n      args:\n        - name: \"Coverage threshold\"\n          options: \"80|85|90|95\"\n      command: \"npm run test -- --coverage-threshold=$arg_1\"\n\napi:\n  folder: \"/projects/api\"\n  commands:\n    - name: \"Run Server\"\n      command: \"go run main.go\"\n    - name: \"Build with Tags\"\n      args:\n        - name: \"Build tags\"\n          options: \"*\"\n      command: \"go build -tags $arg_1 -o api\"\n    - name: \"Test Package\"\n      args:\n        - name: \"Package path\"\n          options: \"*\"\n        - name: \"Test flags\"\n          options: \"-v|-race|-cover\"\n      command: \"go test $arg_2 $arg_1\"\n\ndocker:\n  name: \"🐳 Docker\"\n  commands:\n    - name: \"Run Container\"\n      args:\n        - name: \"Container name\"\n          options: \"*\"\n        - name: \"Port\"\n          options: \"8080|3000|5432\"\n      command: \"docker run -p $arg_2:$arg_2 --name $arg_1 $arg_1\"\n```\n\n## 🎯 Features\n\n- 🎨 Interactive command selection menu\n- 📂 Project-specific command sets\n- ⚡️ Command arguments with:\n  - Free text input\n  - Predefined options\n  - Multiple arguments support\n- 🔄 Automatic directory switching\n- 📋 Command copied to clipboard for easy execution\n- 📝 Simple YAML configuration\n- 🛠️ Support for any shell command\n- 🏷️ Project aliases/names for better organization\n\n## 🔌 Shell Integration\n\n### Ghostty\nAdd this to your Ghostty config (`~/.config/ghostty/config`):\n\n```\nkeybind=super+shift+l=text:lazyalias \u0026\u0026 eval \"$(pbpaste)\"\\n\n```\n\n### Fish Shell\nAdd this to your Fish config (`~/.config/fish/config.fish`):\n\n```fish\nbind \\cs 'lazyalias \u0026\u0026 eval (pbpaste)'\n```\n\n### Bash/Zsh\nAdd this to your `.bashrc` or `.zshrc`:\n\n```bash\nbind '\"\\C-s\": \"lazyalias \u0026\u0026 eval $(pbpaste)\\n\"'\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Feel free to:\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## ⭐️ Show Your Support\n\nGive a ⭐️ if this project helped you!\n\n## ⌨️ Keyboard Shortcuts\n\n- `↑/↓`: Navigate through options\n- `Enter`: Select option\n- `Esc`: Go back/exit\n- `Ctrl+C`: Exit at any time\n\n## 🔧 Troubleshooting\n\n### Common Issues\n\n1. **Command not found**\n   - Ensure LazyAlias is properly installed\n   - Check if the binary is in your PATH\n   - Try reinstalling with `brew reinstall lazyalias` or `go install github.com/sergiorivas/lazyalias/cmd/lazyalias@latest`\n\n2. **Config file not found**\n   - Verify the config file exists at `~/.config/lazyalias/config.yaml`\n   - Check file permissions\n   - Ensure YAML syntax is correct\n\n3. **Shell integration not working**\n   - Verify the shell config changes are saved\n   - Restart your terminal\n   - Check if the keybinding conflicts with other applications\n\n### Getting Help\n\n- Check the [GitHub Issues](https://github.com/sergiorivas/lazyalias/issues)\n- Open a new issue with:\n  - Your OS and version\n  - Installation method\n  - Error message\n  - Steps to reproduce\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiorivas%2Flazyalias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergiorivas%2Flazyalias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiorivas%2Flazyalias/lists"}