Skip to content

Instantly share code, notes, and snippets.

@larryli
Created December 27, 2018 03:13
Show Gist options
  • Save larryli/8e8a5a4f93e489c0080bf3a750dbda7f to your computer and use it in GitHub Desktop.
Save larryli/8e8a5a4f93e489c0080bf3a750dbda7f to your computer and use it in GitHub Desktop.
set zh LANG for ssh
#!/bin/bash
if tty | fgrep -q pts ; then
export LANG=zh_CN.UTF-8
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment