Ls : Add color.
This commit is contained in:
parent
6826541143
commit
0bd7d496dc
|
@ -6,14 +6,14 @@ unset l ll lll llll la lla &> /dev/null
|
||||||
# Current dir by default.
|
# Current dir by default.
|
||||||
# Usage: l [DIRS]
|
# Usage: l [DIRS]
|
||||||
function l() {
|
function l() {
|
||||||
ls -lhv --si --group-directories-first -- "$@"
|
ls -lhv --si --group-directories-first --color=auto -- "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# List last modified files first.
|
# List last modified files first.
|
||||||
# Current dir by default.
|
# Current dir by default.
|
||||||
# Usage: ll [DIRS]
|
# Usage: ll [DIRS]
|
||||||
function ll() {
|
function ll() {
|
||||||
ls -lhvtr --si -- "$@"
|
ls -lhvtr --si --color=auto -- "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# List files in tree structure.
|
# List files in tree structure.
|
||||||
|
@ -36,21 +36,21 @@ function lll() {
|
||||||
# Current dir by default.
|
# Current dir by default.
|
||||||
# Usage: llll [DIRS]
|
# Usage: llll [DIRS]
|
||||||
function llll() {
|
function llll() {
|
||||||
ls -RlAhv --si --group-directories-first -- "$@"
|
ls -RlAhv --si --group-directories-first --color=auto -- "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# List all files in dirs, incl. hidden files.
|
# List all files in dirs, incl. hidden files.
|
||||||
# Current dir by default.
|
# Current dir by default.
|
||||||
# Usage: la [DIRS]
|
# Usage: la [DIRS]
|
||||||
function la() {
|
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.
|
# List all files in dirs, incl. hidden files, sorted by mtime.
|
||||||
# Current dir by default.
|
# Current dir by default.
|
||||||
# Usage: lla [DIRS]
|
# Usage: lla [DIRS]
|
||||||
function lla() {
|
function lla() {
|
||||||
ls -lAhtr --si -- "$@"
|
ls -lAhtr --si --color=auto -- "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# List only files.
|
# List only files.
|
||||||
|
|
Reference in a new issue