aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-02-22 00:29:59 +0800
committerGuangxiong Lin <[email protected]>2022-02-22 00:29:59 +0800
commit703b95028a83e42251f6bda8d6e50b91d32c89f3 (patch)
treebc0acb8e6079cbcffe6b2748550234cf0bdf1683 /bin
parent435d89b7c35e2696d62b279203e3d8ce19965182 (diff)
downloaddotfiles-703b95028a83e42251f6bda8d6e50b91d32c89f3.tar.gz
dotfiles-703b95028a83e42251f6bda8d6e50b91d32c89f3.tar.bz2
dotfiles-703b95028a83e42251f6bda8d6e50b91d32c89f3.zip
Add environment variables when launching emacs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/my-dmenu-run4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/my-dmenu-run b/bin/my-dmenu-run
index 6596b52..83dc194 100755
--- a/bin/my-dmenu-run
+++ b/bin/my-dmenu-run
@@ -21,4 +21,8 @@ if [[ " ${tui_apps[*]} " =~ " ${prog} " ]]; then
prog="$terminal -e $prog"
fi
+if [[ "${prog}" == emacs ]]; then
+ prog="LC_CTYPE='zh_CN.UTF-8' emacs"
+fi
+
echo "$prog" | $shell &