mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-29 01:00:08 +00:00
Merge pull request #2222 from jamesoff/fix-battery-plugin
Prevent errors in prompts if no battery info available.
This commit is contained in:
commit
e25329fcf6
1 changed files with 10 additions and 0 deletions
|
@ -79,4 +79,14 @@ elif [[ $(uname) == "Linux" ]] ; then
|
||||||
echo "∞"
|
echo "∞"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
# Empty functions so we don't cause errors in prompts
|
||||||
|
function battery_pct_remaining() {
|
||||||
|
}
|
||||||
|
|
||||||
|
function battery_time_remaining() {
|
||||||
|
}
|
||||||
|
|
||||||
|
function battery_pct_prompt() {
|
||||||
|
}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue