aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 730cff49..0a6cc055 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1707,7 +1707,7 @@ prompt_dropbox() {
# print Java version number
prompt_java_version() {
local java_version
- java_version=$(java -fullversion 2>&1 | cut -d '"' -f 2)
+ java_version=$(java -fullversion 2>/dev/null | cut -d '"' -f 2)
if [[ -n "$java_version" ]]; then
"$1_prompt_segment" "$0" "$2" "red" "white" "$java_version" "JAVA_ICON"