mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-11 05:39:45 +08:00
Compare commits
2 Commits
fab0a74792
...
6f79e0b171
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f79e0b171 | ||
|
|
bd6563f02d |
@ -40,9 +40,9 @@ if [[ -z "$LS_COLORS" ]]; then
|
||||
fi
|
||||
|
||||
function test-ls-args {
|
||||
local cmd="$1" # ls, gls, colorls, ...
|
||||
shift # remove the command, leaving only the arguments
|
||||
command "$cmd" "$@" /dev/null &>/dev/null
|
||||
# Usage: test-ls-args cmd args...
|
||||
# e.g. test-ls-args gls --color
|
||||
command "$@" /dev/null &>/dev/null
|
||||
}
|
||||
|
||||
# Find the option for using colors in ls, depending on the version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user