I'm using Arabic as the default language but there are some issues when displaying it in terminal. So I want to change the language only in terminal to English, how can I do that ?
3 Answers
You can add a line
export LANG=C
to the end of your ~/.bashrc file and restart the terminal.
All program output will be in English.
- 92,041
An Alternative approach is to run this:
export LC_ALL=en_US.UTF-8
For more permanent solution for you own user account only just put the command above into ~/.bashrc file
You will see the change in your next terminal session. For an immediate change without the need of a new terminal session run:
source ~/.bashrc
In case of multiple terminal sessions (eg. using terminator) you will need to run the command above on each one of them.
So any terminal related error message will be in English (as fas as any gnu-utils related software).
- 1,315
I originally tried Pilot6's answer and it seemed to work (export LANG=C), but I quickly noticed that zsh (with oh-my-zsh) was glitching out.
This seems to fix it:
export LANG=
I got this answer from this thread.
- 1