1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-12 05:49:47 +08:00
This commit is contained in:
Ranga Nirmal 2026-02-08 09:41:01 +05:30 committed by GitHub
commit 8613cf484c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,8 +41,8 @@ fi
function test-ls-args { function test-ls-args {
local cmd="$1" # ls, gls, colorls, ... local cmd="$1" # ls, gls, colorls, ...
local args="${@[2,-1]}" # arguments except the first one shift # remove the command, leaving only the arguments
command "$cmd" "$args" /dev/null &>/dev/null command "$cmd" "$@" /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