about summary refs log tree commit diff
path: root/profile/.profile.d/60_java.sh
blob: e9ddf250274521df0852835554370eeefb1e87c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

export _JAVA_AWT_WM_NONREPARENTING="1"
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"

if command -v java >/dev/null 2>&1; then
	if [ -n "${JAVA_HOME}" ]; then
		export JAVA_HOME="${HOME}/.gentoo/java-config-2/current-user-vm"
	fi
	path_append "${JAVA_HOME}/bin"
	manpath_append "${JAVA_HOME}/man"
fi

Consider giving Nix/NixOS a try! <3