Skip to content

WestleyR/list-files

Repository files navigation

List Files in a Directory

lf is a simple, and fast file/directory lister with color highlighting, file permission and file links!

Install

There are several ways to install lf, you can:

Install via gpack

First, download and install gpack. Then you can install by:

$ gpack install WestleyR/list-files

Or update by:

$ gpack update && gpack upgrade

Install from source

First, download the source code:

Using git:

$ git clone https://github.com/WestleyR/list-files.git

Or downloading the tarball:

# From master:
$ wget https://github.com/WestleyR/list-files/archive/master.tar.gz

# Or from a release:
$ wget https://github.com/WestleyR/list-files/archive/v1.6.2.tar.gz

# Then untar the file
$ tar -xzf master.tar.gz && mv list-files-master list-files

Then checkout, and compile the source code:

$ cd list-files/

# Checkout to a stable version *only if you downloaded with git* (optional)
$ git checkout v1.6.2

$ make
$ make test # optional, it only takes a second
$ sudo make install

You can also install to a specified prefix; like your home dir: (default: usr/local)

$ make install PREFIX=${HOME}/.local

NOTE: Check for the latest release on the release page

Example:

$ ./lf 
-rw- r--r--  westleyrose  staff  2020-05-04  1.7 KB   tests-funcs
-rw- r--r--  westleyrose  staff  2020-05-04  1.6 KB   LICENSE
-rw- r--r--  westleyrose  staff  2020-08-14  2.5 KB   CHANGELOG.md
-rw- r--r--  westleyrose  staff  2020-05-04  2.1 KB   Makefile
-rw- r--r--  westleyrose  staff  2020-08-14  601 B    clib.json
drwx r-xr-x  westleyrose  staff  2020-07-30  800 B    tests
-rw- r--r--  westleyrose  staff  2020-08-16  2.9 KB   README.md
-rwx r-xr-x  westleyrose  staff  2020-08-14  1.8 KB   package.sh
drwx r-xr-x  westleyrose  staff  2020-05-04  192 B    deps
-rwx r-xr-x  westleyrose  staff  2020-08-14  23.0 KB  lf
-rw- r--r--  westleyrose  staff  2020-05-04  1.1 KB   run-tests
drwx r-xr-x  westleyrose  staff  2020-08-14  640 B    src

License

This project is licensed under the terms of The Clear BSD License. See the LICENSE file for more details.