Show HN: Empty Enter Expander – Type less in the terminal with this tool
a year ago
- #productivity
- #git
- #zsh
- Empty Enter Expander is a tool for zsh that inserts commands with minimal keystrokes.
- Commands are stored in a module directory with lowercase-named files and folders acting as shortcuts.
- Activated by pressing Enter on an empty command, followed by specific key sequences for different commands.
- Example commands include navigating to a project folder, viewing git status, and viewing git log.
- Commands are stored in a structured module directory, e.g., ~/Tools/expander-example-module.
- Example script for git log command is provided, stored in a specific path with lowercase naming for shortcuts.
- Configuration involves setting up HIST_IGNORE_SPACE, module path, and binding keys in ~/.zprofile.
- After configuration, opening a new shell allows activation of the expander to list and insert stored commands.