forked from misc/zsh-config
Java options should only be exported on Linux.
This commit is contained in:
parent
6314db1861
commit
5047f866e9
@ -1,7 +1,10 @@
|
|||||||
# Java-specific exports.
|
# Java-specific exports.
|
||||||
# More or less pretty fonts in Java programs.
|
# More or less pretty fonts in Java programs.
|
||||||
# It should be exported only if we have X session running.
|
# It should be exported only if we have X session running.
|
||||||
|
# Also, these settings should be applied only on Linux.
|
||||||
|
if [[ "${OS}" == "Linux" ]]; then
|
||||||
if [ ! -z ${DISPLAY} ]; then
|
if [ ! -z ${DISPLAY} ]; then
|
||||||
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
|
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
|
||||||
export JAVA_FONTS=/usr/share/fonts/TTF
|
export JAVA_FONTS=/usr/share/fonts/TTF
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user