[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7736":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},7736,"colorls","athityakumar\u002Fcolorls","athityakumar","A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. :tada:","",null,"Ruby",5123,398,45,80,0,3,11,1,38.8,"MIT License",false,"main",true,[26,27,28,29,30,31,32,33],"cli","color","eye-candy","gem","icons","ls","ruby","terminal","2026-06-12 02:01:43","# Color LS\n\n[![forthebadge](http:\u002F\u002Fforthebadge.com\u002Fimages\u002Fbadges\u002Fmade-with-ruby.svg)](http:\u002F\u002Fforthebadge.com)\n[![forthebadge](http:\u002F\u002Fforthebadge.com\u002Fimages\u002Fbadges\u002Fbuilt-with-love.svg)](http:\u002F\u002Fforthebadge.com)\n\n[![Gem Version](https:\u002F\u002Fbadge.fury.io\u002Frb\u002Fcolorls.svg)](https:\u002F\u002Fbadge.fury.io\u002Frb\u002Fcolorls)\n[![CI](https:\u002F\u002Fgithub.com\u002Fathityakumar\u002Fcolorls\u002Factions\u002Fworkflows\u002Fruby.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fathityakumar\u002Fcolorls\u002Factions\u002Fworkflows\u002Fruby.yml)\n[![PRs Welcome](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPRs-welcome-brightgreen.svg?style=shields)](http:\u002F\u002Fmakeapullrequest.com)\n\nA Ruby script that colorizes the `ls` output with color and icons. Here are the screenshots of working example on an iTerm2 terminal (Mac OS), `oh-my-zsh` with `powerlevel9k` theme and `powerline nerd-font + awesome-config` font with the `Solarized Dark` color theme.\n\n ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149040-04f3125c-bd25-11e7-8003-66fd29bc18d4.png)\n\n*If you're interested in knowing the powerlevel9k configuration to get this prompt, have a look at [this gist](https:\u002F\u002Fgist.github.com\u002Fathityakumar\u002F1bd5e9e24cd2a1891565573a893993eb).*\n\n# Table of contents\n\n- [Usage](#usage)\n  - [Flags](#flags)\n    - `-1`\n    - `-a`   (or) `--all`\n    - `-A`   (or) `--almost-all`\n    - `-d`   (or) `--dirs`\n    - `-f`   (or) `--files`\n    - `--help`\n    - `-l`   (or) `--long`\n    - `--report`\n    - `--tree` (or) `--tree=[DEPTH]`\n    - `--gs` (or) `--git-status`\n    - `--sd` (or) `--sort-dirs` or `--group-directories-first`\n    - `--sf` (or) `--sort-files`\n    - `-t`\n  - [Combination of flags](#combination-of-flags)\n- [Installation](#installation)\n- [Recommended configurations](#recommended-configurations)\n- [Custom configurations](#custom-configurations)\n- [Updating](#updating)\n- [Uninstallation](#uninstallation)\n- [Contributing](#contributing)\n- [License](#license)\n\n# Usage\n\n[(Back to top)](#table-of-contents)\n\nMan pages have been added. Checkout `man colorls`.\n\n### Flags\n\n- With `-1` : Lists one entry per line\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149062-4f0547ca-bd25-11e7-98b6-587467379704.png)\n\n- With `-a` (or) `--all` : Does not ignore entries starting with '.'\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149045-182eb39e-bd25-11e7-83d4-897cb14bcff3.png)\n\n- With `-A` (or) `--almost-all` : Does not ignore entries starting with '.', except `.\u002F` and `..\u002F`\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149046-1ef7664e-bd25-11e7-8bd9-bfc3c8b27b74.png)\n\n- With `-d` (or) `--dirs` : Shows only directories\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149066-5f842aa8-bd25-11e7-9bf0-23313b717182.png)\n\n- With `-f` (or) `--files` : Shows only files\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149065-5a27c9d4-bd25-11e7-9a2b-fd731d76a058.png)\n\n- With `--help` : Prints a very helpful help menu\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149096-cf2cf5b0-bd25-11e7-84b6-909d79099c98.png)\n\n- With `-l` (or) `--long` : Shows in long listing format\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149049-2a63ae48-bd25-11e7-943c-5ceed25bd693.png)\n\n- With `--report` : Shows brief report about number of files and folders shown\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149082-96a83fec-bd25-11e7-9081-7f77e4c90e90.png)\n\n- With `--tree` (or) `--tree=[DEPTH]` : Shows tree view of the directory with the specified depth (default 3)\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149051-32e596e4-bd25-11e7-93a9-5e50c8d2bb19.png)\n\n- With `--gs` (or) `--git-status` : Shows git status for each entry\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149075-7a1a1954-bd25-11e7-964e-1adb173aa2b9.png)\n\n- With `--sd` (or) `--sort-dirs` or `--group-directories-first` : Shows directories first, followed by files\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149068-65117fc0-bd25-11e7-8ada-0b055603e3fd.png)\n\n- With `--sf` (or) `--sort-files` : Shows files first, followed by directories\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149071-6b379de4-bd25-11e7-8764-a0c577e526a1.png)\n\n- With `-t` : Sort by modification time, newest first (NEED TO ADD IMAGE)\n\n- With color options : `--light` or `--dark` can be passed as a flag, to choose the appropriate color scheme. By default, the dark color scheme is chosen. In order to tweak any color, read [Custom configurations](#custom-configurations).\n\n### Combination of flags\n\n- Using `--gs` with `-t` :\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149076-8423c864-bd25-11e7-816e-8642643d2c27.png)\n\n- Using `--gs` with `-l` :\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149078-899b0622-bd25-11e7-9810-d398eaa77e32.png)\n\n- Using `--sd` with `-l` and `-A` :\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F17109060\u002F32149084-9eb2a416-bd25-11e7-8fb7-a9d336c6e038.png)\n\n- Using `--non-human-readable` with `-l` :\n  - This will print the file sizes in bytes (non-human readable format)\n\n  ![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F19269206\u002F234581461-1e1fdd90-a362-4cea-ab82-5ca360746be8.png)\n\n# Installation\n\n[(Back to top)](#table-of-contents)\n\n1. Install Ruby (preferably, version >= 2.6 via a version manager like [rbenv](https:\u002F\u002Fgithub.com\u002Frbenv\u002Frbenv))\n2. [Download](https:\u002F\u002Fwww.nerdfonts.com\u002Ffont-downloads) and install a Nerd Font so you can see the library icons. Have a look at the [Nerd Font README](https:\u002F\u002Fgithub.com\u002Fryanoasis\u002Fnerd-fonts\u002Fblob\u002Fmaster\u002Freadme.md) for installation instructions. We're using \"Hack Nerd Font\" for this guide.\n\n    *Note for MacOS users using the stock terminal - Please enable Nerd Font at Terminal > Preferences > Profiles > Text > Font. Click `Change..` and select `Hack Nerd Font` - Regular*\n\n    *Note for `iTerm2` users - Please enable the Nerd Font at iTerm2 > Preferences > Profiles > Text > Non-ASCII font > Hack Regular Nerd Font Complete.*\n\n    *Note for `HyperJS` users - Please add `\"Hack Nerd Font\"` Font as an option to `fontFamily` in your `~\u002F.hyper.js` file.*\n\n3. Install the [colorls](https:\u002F\u002Frubygems.org\u002Fgems\u002Fcolorls\u002F) ruby gem with `gem install colorls`\n\n    *Note for `rbenv` users - In case of load error when using `lc`, please try the below patch.*\n\n    ```sh\n    rbenv rehash\n    rehash\n    ```\n\n4. Enable tab completion for flags by entering following line to your shell configuration file (`~\u002F.bashrc` or `~\u002F.zshrc`) :\n    ```bash\n    source $(dirname $(gem which colorls))\u002Ftab_complete.sh\n    ```\n\n    *Don't forget to restart your terminal*\n\n5. Start using `colorls` :tada:\n\n6. Have a look at [Recommended configurations](#recommended-configurations) and [Custom configurations](#custom-configurations).\n\nIf you're having trouble following the installation guide above, here's a [video](https:\u002F\u002Freplayable.io\u002Freplay\u002F63703dff5b09d400696d2663\u002F?share=R2Twi0SdQiqg8cxHyzem6g) reproducing steps 2 to 6.\n\n# Recommended configurations\n\n[(Back to top)](#table-of-contents)\n\n1. To add some short command (say, `lc`) with some flag options (say, `-l`, `-A`, `--sd`) by default, add this to your shell configuration file (`~\u002F.bashrc`, `~\u002F.zshrc`, etc.) :\n    ```sh\n    alias lc='colorls -lA --sd'\n    ```\n\n2. For changing the icon(s) to other unicode icons of choice (select icons from [here](https:\u002F\u002Fnerdfonts.com\u002F)), change the YAML files in a text editor of your choice (say, `subl`)\n\n    ```sh\n    subl $(dirname $(gem which colorls))\u002Fyaml\n    ```\n\n# Custom configurations\n\n[(Back to top)](#table-of-contents)\n\nYou can overwrite the existing icons and colors mapping by copying the yaml files from `$(dirname $(gem which colorls))\u002Fyaml` into `~\u002F.config\u002Fcolorls`, and changing them.\n\n- To overwrite color mapping :\n\n  Please have a look at the [list of supported color names](https:\u002F\u002Fgithub.com\u002Fsickill\u002Frainbow#color-list). You may also use a color hex code as long as it is quoted within the YAML file and prefaced with a `#` symbol.\n\n  Let's say that you're using the dark color scheme and would like to change the color of untracked file (`??`) in the `--git-status` flag to yellow. Copy the defaut `dark_colors.yaml` and change it.\n\n  Check if the `~\u002F.config\u002Fcolorls` directory exists. If it doesn't exist, create it using the following command:\n \n  ```sh\n  mkdir -p ~\u002F.config\u002Fcolorls\n  ```\n\n  And then\n\n  ```sh\n  cp $(dirname $(gem which colorls))\u002Fyaml\u002Fdark_colors.yaml ~\u002F.config\u002Fcolorls\u002Fdark_colors.yaml\n  ```\n\n  In the `~\u002F.config\u002Fcolorls\u002Fdark_colors.yaml` file, change the color set for `untracked` from `darkorange` to `yellow`, and save the change.\n\n  ```\n  untracked: yellow\n  ```\n\n  Or, using hex color codes:\n\n  ```\n  untracked: '#FFFF00'\n  ```\n\n- To overwrite icon mapping :\n\n  Please have a look at the [list of supported icons](https:\u002F\u002Fnerdfonts.com\u002F). Let's say you want to add an icon for swift files. Copy the default `files.yaml` and change it.\n\n  ```sh\n  cp $(dirname $(gem which colorls))\u002Fyaml\u002Ffiles.yaml ~\u002F.config\u002Fcolorls\u002Ffiles.yaml`\n  ```\n\n  In the `~\u002F.config\u002Fcolorls\u002Ffiles.yaml` file, add a new icon \u002F change an existing icon, and save the change.\n\n\n  ```\n  swift: \"\\uF179\"\n  ```\n\n- User contributed alias configurations :\n\n  - [@rjhilgefort](https:\u002F\u002Fgist.github.com\u002Frjhilgefort\u002F51ea47dd91bcd90cd6d9b3b199188c16)\n\n\n# Updating\n\n[(Back to top)](#table-of-contents)\n\nWant to update to the latest version of `colorls`?\n\n```sh\ngem update colorls\n```\n\n# Uninstallation\n\n[(Back to top)](#table-of-contents)\n\nWant to uninstall and revert back to the old style? No issues (sob). Please feel free to open an issue regarding how we can enhance `colorls`.\n\n```sh\ngem uninstall colorls\n```\n\n# Contributing\n\n[(Back to top)](#table-of-contents)\n\nYour contributions are always welcome! Please have a look at the [contribution guidelines](CONTRIBUTING.md) first. :tada:\n\n# License\n\n[(Back to top)](#table-of-contents)\n\n\nThe MIT License (MIT) 2017 - [Athitya Kumar](https:\u002F\u002Fgithub.com\u002Fathityakumar\u002F). Please have a look at the [LICENSE.md](LICENSE.md) for more details.\n","Color LS 是一个 Ruby 脚本，用于美化终端的 `ls` 命令输出，通过添加颜色和字体图标来增强可读性和视觉效果。它支持多种标志选项，如 `-1`（每行显示一个条目）、`-a` 或 `--all`（不忽略以点号开头的条目）等，允许用户根据需要定制列表样式。此外，该工具还提供了对目录和文件进行分类显示的功能，并能与常见的终端主题和字体配置良好兼容。适用于希望提升日常开发效率及代码浏览体验的开发者或系统管理员，在使用命令行界面时能够更直观地识别不同类型的文件和目录。",2,"2026-06-11 03:14:05","top_language"]