From 0bd7d496dc321f0a116a72c5a0724bb57315d9f3 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 25 Feb 2024 00:49:25 +0300 Subject: [PATCH] Ls : Add color. --- .config/linux/system/module/common/bash/module/Ls.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/linux/system/module/common/bash/module/Ls.sh b/.config/linux/system/module/common/bash/module/Ls.sh index 5841d04..12fe16e 100644 --- a/.config/linux/system/module/common/bash/module/Ls.sh +++ b/.config/linux/system/module/common/bash/module/Ls.sh @@ -6,14 +6,14 @@ unset l ll lll llll la lla &> /dev/null # Current dir by default. # Usage: l [DIRS] function l() { - ls -lhv --si --group-directories-first -- "$@" + ls -lhv --si --group-directories-first --color=auto -- "$@" } # List last modified files first. # Current dir by default. # Usage: ll [DIRS] function ll() { - ls -lhvtr --si -- "$@" + ls -lhvtr --si --color=auto -- "$@" } # List files in tree structure. @@ -36,21 +36,21 @@ function lll() { # Current dir by default. # Usage: llll [DIRS] function llll() { - ls -RlAhv --si --group-directories-first -- "$@" + ls -RlAhv --si --group-directories-first --color=auto -- "$@" } # List all files in dirs, incl. hidden files. # Current dir by default. # Usage: la [DIRS] function la() { - ls -lAh --si --group-directories-first -- "$@" + ls -lAh --si --group-directories-first --color=auto -- "$@" } # List all files in dirs, incl. hidden files, sorted by mtime. # Current dir by default. # Usage: lla [DIRS] function lla() { - ls -lAhtr --si -- "$@" + ls -lAhtr --si --color=auto -- "$@" } # List only files.