mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
Simplify
This commit is contained in:
parent
3e21d93c84
commit
bd6563f02d
1 changed files with 3 additions and 3 deletions
|
|
@ -40,9 +40,9 @@ if [[ -z "$LS_COLORS" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function test-ls-args {
|
function test-ls-args {
|
||||||
local cmd="$1" # ls, gls, colorls, ...
|
# Usage: test-ls-args cmd args...
|
||||||
shift # remove the command, leaving only the arguments
|
# e.g. test-ls-args gls --color
|
||||||
command "$cmd" "$@" /dev/null &>/dev/null
|
command "$@" /dev/null &>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# Find the option for using colors in ls, depending on the version
|
# Find the option for using colors in ls, depending on the version
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue