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.
|
||||
# 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.
|
||||
|
|
Reference in a new issue