feat: Update lsd config

This commit is contained in:
2025-11-04 23:59:14 +01:00
parent 6e8c6cd71a
commit 36627be43a
2 changed files with 35 additions and 10 deletions
+35 -10
View File
@@ -1,5 +1,3 @@
#/bin/bash
# == Classic == # == Classic ==
# This is a shorthand to override some of the options to be backwards compatible # This is a shorthand to override some of the options to be backwards compatible
# with `ls`. It affects the "color"->"when", "sorting"->"dir-grouping", "date" # with `ls`. It affects the "color"->"when", "sorting"->"dir-grouping", "date"
@@ -10,7 +8,7 @@ classic: false
# == Blocks == # == Blocks ==
# This specifies the columns and their order when using the long and the tree # This specifies the columns and their order when using the long and the tree
# layout. # layout.
# Possible values: permission, user, group, size, size_value, date, name, inode # Possible values: permission, user, group, context, size, date, name, inode, links, git
blocks: blocks:
- permission - permission
- user - user
@@ -28,17 +26,15 @@ color:
when: auto when: auto
# How to colorize the output. # How to colorize the output.
# When "classic" is set, this is set to "no-color". # When "classic" is set, this is set to "no-color".
# Possible values: default, <theme-file-name> # Possible values: default, custom
# when specifying <theme-file-name>, lsd will look up theme file # When "custom" is set, lsd will look in the config directory for `colors.yaml`.
# XDG Base Directory if relative, e.g. ~/.config/lsd/themes/<theme-file-name>.yaml, theme: custom
# The file path if absolute
theme: tokyonight
# == Date == # == Date ==
# This specifies the date format for the date column. The freeform format # This specifies the date format for the date column. The freeform format
# accepts an strftime like string. # accepts a strftime like string.
# When "classic" is set, this is set to "date". # When "classic" is set, this is set to "date".
# Possible values: date, relative, '+<date_format>' # Possible values: date, locale, relative, '+<date_format>'
# `date_format` will be a `strftime` formatted value. e.g. `date: '+%d %b %y %X'` will give you a date like this: 17 Jun 21 20:14:55 # `date_format` will be a `strftime` formatted value. e.g. `date: '+%d %b %y %X'` will give you a date like this: 17 Jun 21 20:14:55
date: date date: date
@@ -95,6 +91,11 @@ recursion:
# Possible values: default, short, bytes # Possible values: default, short, bytes
size: default size: default
# == Permission ==
# Specify the format of the permission column
# Possible value: rwx, octal, attributes (windows only), disable
# permission: rwx
# == Sorting == # == Sorting ==
sorting: sorting:
# Specify what to sort by. # Specify what to sort by.
@@ -118,6 +119,30 @@ no-symlink: false
# Possible values: false, true # Possible values: false, true
total-size: false total-size: false
# == Hyperlink ==
# Attach hyperlink to filenames
# Possible values: always, auto, never
hyperlink: never
# == Symlink arrow == # == Symlink arrow ==
# Specifies how the symlink arrow display, chars in both ascii and utf8 # Specifies how the symlink arrow display, chars in both ascii and utf8
symlink-arrow: symlink-arrow:
# == Header ==
# Whether to display block headers.
# Possible values: false, true
header: false
# == Literal ==
# Whether to show quotes on filenames.
# Possible values: false, true
literal: false
# == Truncate owner ==
# How to truncate the username and group names for a file if they exceed a certain
# number of characters.
truncate-owner:
# Number of characters to keep. By default, no truncation is done (empty value).
after:
# String to be appended to a name if truncated.
marker: ""