Skip to content

zetatez/lazy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazy CLI

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.


Features

  • 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.


Installation

  1. Clone the repository
git clone https://github.com/zetatez/lazy.git
cd lazy
  1. Build the binary
make
  1. Install the binary
make install
  1. Uninstall the binary
make uninstall

Dependencies


Configuration

See config.yaml


Usage Examples

# 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

Best Practice

  • Use lazy in dwm:

    • Hint: st -e lazy_open_search_file_of_dir /
  • Use lazy in zsh:

    bindkey -s '^F' 'lazy_open_search_file_of_dir ./\n'
    bindkey -s '^X' 'lazy_exec_search_file_of_dir ./\n'

LICENSE

MIT.

About

Lazy. A cli tool that will greatly improve your working efficiency.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •