mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-11 05:39:45 +08:00
Merge 3e21d93c84 into 41c5b9677a
This commit is contained in:
commit
fab0a74792
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user