#!/bin/sh
env | grep -E '^(XMODIFIERS|GTK_IM_MODULE|QT_IM_MODULE)=' \ >
"${HOME}/.im_environment"
syntax highlighted by
Code2HTML
, v. 0.9.1