Skip to main content

c*ls commands that use colour and pipe output to less, with a sensible prompt

Project description

c*ls

Uses colour and pipes output to less, with a sensible prompt.

Each command is equivalent to:-

cls      ls -FC
clls     ls -lF --time-style=long-iso
cllls    ls -lF --time-style=full-iso
cals     ls -FCA
calls    ls -lFA --time-style=long-iso
callls   ls -lFA --time-style=full-iso
csls     sudo ls -FC
cslls    sudo ls -lF --time-style=long-iso
csllls   sudo ls -lF --time-style=full-iso
csals    sudo ls -FCA
csalls   sudo ls -lFA --time-style=long-iso
csallls  sudo ls -lFA --time-style=full-iso

Installation

  1. Run pip3 -V
  2. If you get a Command not found error, run sudo apt install python3-pip and redo from start
  3. If your pip major version is less than 9, run pip3 install -U pip && hash -r
  4. Run pip3 install colorls

TO-DO

  • LINK_COL_WIDTH (what does this mean??)
  • Fix inum handling
  • Check for numeric owner/group
  • Use type -a python3 and unset VIRTUAL_ENV when in a venv to break out of it

Development

Package dependencies are handled by pipenv. It is assumed that pipenv will manage the installation of all concrete dependency versions. setup.py reads the dependency info from Pipfile via the pipenv pacakge.

Before you can build the package, you will have to have make installed. You can then run make setup to create a Virtualenv (the .venv subdirectory where packages and metadata will be installed) and then . .venv/bin/activate to activate it.

Then you can run pip install pipenv wheel and then use a build process such as:-

make build
make dist
# ... test .whl file now ...
make release

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colorls-1.3.0.tar.gz (17.6 kB view hashes)

Uploaded Source

Built Distribution

colorls-1.3.0-py3-none-any.whl (28.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page