Merge remote-tracking branch 'VanRoy/master' into staging_065
Conflicts were: - functions/icons.zsh: The Java Segment was added on master, but on next were added various Segments with icons in the meantime. - powerlevel9k.zsh-theme: Java Segment was added on master, Dropbox Segment was added on next.
This commit is contained in:
commit
4c2f58bdbd
3 changed files with 16 additions and 0 deletions
|
@ -1662,7 +1662,16 @@ prompt_dropbox() {
|
|||
|
||||
"$1_prompt_segment" "$0" "$2" "white" "blue" "$dropbox_status" "DROPBOX_ICON"
|
||||
fi
|
||||
}
|
||||
|
||||
# print Java version number
|
||||
prompt_java_version() {
|
||||
local java_version
|
||||
java_version=$(java -fullversion 2>&1 | cut -d '"' -f 2)
|
||||
|
||||
if [[ -n "$java_version" ]]; then
|
||||
"$1_prompt_segment" "$0" "$2" "red" "white" "$java_version" "JAVA_ICON"
|
||||
fi
|
||||
}
|
||||
|
||||
################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue