Skip to content

rwmitchell/lb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lb: zsh addon

About

Robust 'which' replacement combining output from other standard commands to show more info about the program, function or alias.

Source for scripts and functions can be optionally displayed.

This is my first contribution of personal use code.

Usage

Output from 'lb -h'

lb_help -Cefilrvh CMD [CMD]

Find location of executable, function, or alias

  -C: colorize source
  -f: show 'file' output for executables
  -i: show 'ident' information
  -l: long ls output
  -r: reload function
  -e: edit function
  -v: show script and function source

Examples:

lb-ls

Primary is a zsh function, but other executables exist

lb-prog

Program exist in multiple paths, primary is highlighted

Requirements

The '-C' option uses 'colorize_cat' from the 'colorize' plugin found in OMZ.

Additional information about the type of file is displayed using the unix 'file' command and assumed to be present.

Installation

Copy or ln 'lb' to your location for loading autoload zsh tools.

About

Robust 'which' replacement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages