diff options
author | Guangxiong Lin <[email protected]> | 2022-02-22 00:29:59 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-02-22 00:29:59 +0800 |
commit | 703b95028a83e42251f6bda8d6e50b91d32c89f3 (patch) | |
tree | bc0acb8e6079cbcffe6b2748550234cf0bdf1683 /bin/my-dmenu-run | |
parent | 435d89b7c35e2696d62b279203e3d8ce19965182 (diff) | |
download | dotfiles-703b95028a83e42251f6bda8d6e50b91d32c89f3.tar.gz dotfiles-703b95028a83e42251f6bda8d6e50b91d32c89f3.tar.bz2 dotfiles-703b95028a83e42251f6bda8d6e50b91d32c89f3.zip |
Add environment variables when launching emacs
Diffstat (limited to 'bin/my-dmenu-run')
-rwxr-xr-x | bin/my-dmenu-run | 4 |
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 & |