⚙️
g - powerful and cross-platform ls
  • Start
  • Installation
  • 🥳Usage
    • Basic
      • View
      • Display
        • Layout
        • Setting
        • Misc
      • Filtering
      • Sorting
    • Advanced
      • default option
      • cli markdown renderer
      • fuzzy match path
      • args
Powered by GitBook
On this page
  • classic
  • colorless
  • theme

Was this helpful?

Edit on GitHub
  1. Usage
  2. Basic
  3. Display

Setting

classic

output like ls, without color and icon

--classic

colorless

disable color

--colorless or --no-color

theme

g uses JSON file to configure custom theme

The colors listed below are supported

Black       
Red         
Green       
Yellow      
Blue        
Purple      
Cyan        
White       
BrightBlack 
BrightRed   
BrightGreen 
BrightYellow
BrightBlue  
BrightPurple
BrightCyan  
BrightWhite 

and 256 color should be the form of [code]@256

true color/ 24bit color should be the form of [r,g,b]@rgb

hex form: [str]@hex

example

custom-theme
{
    "info": {
        "-": {
            "color": "white"
        },
        "inode": {
            "color": "purple"
        },
        "reset": {
            "color": "reset"
        },
        "time": {
            "color": "blue"
        }
    },
    "permission": {
        "-": {
            "color": "white"
        },
        "D": {
            "color": "cyan"
        },
        "b": {
            "color": "yellow"
        },
        "c": {
            "color": "yellow"
        },
        "d": {
            "color": "blue"
        },
        "l": {
            "color": "purple"
        },
        "octal": {
            "color": "[208]@256"
        },
        "p": {
            "color": "yellow"
        },
        "r": {
            "color": "yellow"
        },
        "s": {
            "color": "yellow"
        },
        "w": {
            "color": "red"
        },
        "x": {
            "color": "green"
        }
    },
    ...
"readme": {
            "color": "yellow",
            "icon": "<U+F48A>",
            "underline": true,
            "bold": true,
            "faint": false,
            "italics": false,
            "blink": false
},

apply theme

g --theme=path-to-theme-file
PreviousLayoutNextMisc

Last updated 1 year ago

Was this helpful?

full theme :

🥳
[default]