lazy is a lightweight command-line tool that automatically selects the appropriate way to view, open, or execute files based on their type, improving your workflow efficiency.
- VIEW: View file content using the default configured method.
- OPEN: Open files with their default applications.
- EXEC: Execute scripts or executable files.
lazy selects commands based on file extension or MIME type, and falls back to default commands if no match is found.
- Clone the repository
git clone https://github.com/zetatez/lazy.git
cd lazy- Build the binary
make- Install the binary
make install- Uninstall the binary
make uninstallSee config.yaml
# Show help
lazy -h
# View a file
lazy -o view -f /path/to/file
# Open a file
lazy -o open -f /path/to/file
# Execute a script
lazy -o exec -f /path/to/script.sh-
Use lazy in dwm:
- Hint:
st -e lazy_open_search_file_of_dir /
- Hint:
-
Use lazy in zsh:
bindkey -s '^F' 'lazy_open_search_file_of_dir ./\n' bindkey -s '^X' 'lazy_exec_search_file_of_dir ./\n'
MIT.