项目作者: gardebring

项目描述 :
PowerShell script to display a colorized directory and file listing with icons
高级语言: PowerShell
项目地址: git://github.com/gardebring/PowerColorLS.git
创建时间: 2020-04-07T18:29:29Z
项目社区:https://github.com/gardebring/PowerColorLS

开源协议:MIT License

下载


PowerColorLS

A PowerShell module that displays a colorized directory and file listing with icons. Inspired by colorls

Screenshot 1

Overview

PowerColorLS is a PowerShell module that displays a colorized directory and file listing with icons in the terminal.
For the module to work, you must first install Terminal-Icons and setup the Nerd Fonts

Installation

To install the module from the PowerShell Gallery:

  1. Install-Module -Name PowerColorLS -Repository PSGallery

Example usage

  1. Import-Module PowerColorLS
  2. PowerColorLS

List all files and directories including hidden ones and ones starting with ‘.’ in long listing (wide) format

  1. PowerColorLS -a -l

Screenshot 2

List all files and directories including hidden ones and ones starting with ‘.’ in long listing (wide) format and also include directory size

  1. PowerColorLS -a -l --show-directory-size

Screenshot 3

List files only, followed by list directories only

  1. PowerColorLS -f
  2. PowerColorLS -d

Screenshot 4

Listing files in a git directory displays git status as well

  1. PowerColorLS

Screenshot 5

Help

To get help about available arguments, run:

  1. PowerColorLS --help

Output of help command:

  1. Usage: PowerColorLs [OPTION]... [FILE]...
  2. List information about files and directories (the current directory by default).
  3. Entries will be sorted alphabetically if no sorting option is specified.
  4. -a, --all do not ignore hidden files and files starting with .
  5. -l, --long use a long listing format
  6. -r, --report shows a brief report
  7. -1 list one file per line
  8. -d, --dirs show only directories
  9. -f, --files show only files
  10. -ds, -sds, --sds, --show-directory-size
  11. show directory size (can take a long time)
  12. -hi, --hide-icons hide icons
  13. sorting options:
  14. -sd, --sort-dirs, --group-directories-first
  15. sort directories first
  16. -sf, --sort-files, --group-files-first
  17. sort files first
  18. -t, -st, --st
  19. sort by modification time, newest first
  20. general options:
  21. -h, --help prints this help
  22. -v, --version show version information

Alias to ls

  1. Set-Alias -Name ls -Value PowerColorLS -Option AllScope