1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-09-21 11:00:08 +00:00
This commit is contained in:
romkatv 2019-08-28 21:49:08 +02:00
parent ce532fea3e
commit 84a562eca6

View file

@ -3051,10 +3051,8 @@ _p9k_preexec() {
}
function _p9k_set_iface() {
if [[ ! -x /sbin/ifconfig ]]; then
_p9k_iface=()
return
fi
_p9k_iface=()
[[ -x /sbin/ifconfig ]] || return
local line
local iface
for line in ${(f)"$(/sbin/ifconfig 2>/dev/null)"}; do