mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-02-12 20:31:00 +01:00
Compare commits
1 Commits
41c5b9677a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88659ed193 |
@@ -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...
|
||||||
local args="${@[2,-1]}" # arguments except the first one
|
# e.g. test-ls-args gls --color
|
||||||
command "$cmd" "$args" /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
|
||||||
|
|||||||
Reference in New Issue
Block a user