1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-12 05:49:47 +08:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Ranga Nirmal
fab0a74792
Merge 3e21d93c84 into 41c5b9677a 2026-02-09 06:35:36 +05:30

View File

@ -40,9 +40,9 @@ if [[ -z "$LS_COLORS" ]]; then
fi
function test-ls-args {
# Usage: test-ls-args cmd args...
# e.g. test-ls-args gls --color
command "$@" /dev/null &>/dev/null
local cmd="$1" # ls, gls, colorls, ...
shift # remove the command, leaving only the arguments
command "$cmd" "$@" /dev/null &>/dev/null
}
# Find the option for using colors in ls, depending on the version