Skip to content
/ l-c Public

Enhanced ls/cd replacements (Linux / macOS / Windows)

Notifications You must be signed in to change notification settings

csavalas/l-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

l/c (enhanced ls/cd replacements)


Installation Instructions

  • Install Python 3.*
  • run ./setup.sh (or ./setup.ps1 for Windows) then restart your terminal.

Supported Platforms

  • Linux (bash)
  • macOS (zsh)
  • Windows (Terminal:Powershell)

Usage Instructions

General note

  • Since l can quickly copy an entry to the clipboard, it can be used in conjunction
    with other commands to avoid mouse input or slow transcription, eg, code <clipboard-contents>.

l command

  • General
    • The output of l will enumerate the result of the query (detailed below)
    • The selected number will copy the corresponding dir/file to clipboard
    • Directories are listed first, then files, then special items
    • NOTE: All entries are accessible to c by number regardless of selection
  • Query Examples (inexhaustive)
    • NOTE: *'s must be escaped in macOS/Linux
      • eg. l dir/subdir/*.png would be written l dir/subdir/\*.png
    • l
      • Lists contents of current directory
      • Items copied to the clipboard will not include full path
    • l .
      • Lists contents of current directory
      • Items copied to the clipboard will include full path
    • l *.png
      • lists all pngs in current directory
      • Items copied to the clipboard will not include full path
    • l <dir name>/*/
      • lists all directories contained within <dir name>
      • Items copied to the clipboard will include full path

c command

  • Examples
    • c
      • Changes to the directory stored in the clipboard
    • c <index #>
      • Changes to the directory corresponding an index # in the last run of l
    • c <dir name/path>
      • Changes to <dir name/path>
    • c ..
      • Changes to the parent directory

About

Enhanced ls/cd replacements (Linux / macOS / Windows)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors