Browse Source

update docs

ruki 4 years ago
parent
commit
33b03e03be
2 changed files with 20 additions and 0 deletions
  1. 10 0
      guide/configuration.md
  2. 10 0
      zh-cn/guide/configuration.md

+ 10 - 0
guide/configuration.md

@@ -1039,6 +1039,16 @@ Similar to `XMAKE_MAIN_REPO`, the only difference is that this is used to switch
 $ export XMAKE_MAIN_REPO = https://github.com/xmake-mirror/build-artifacts.git
 ```
 
+### XMAKE_THEME
+
+- Set theme
+
+Usually we can set the color theme through `xmake g --theme=plain`, but it is global. If we want to set the current terminal session individually, we can use this environment variable to set it.
+
+```console
+$ export XMAKE_THEME=plain
+```
+
 ### XMAKE_STATS
 
 -Enable or disable user statistics

+ 10 - 0
zh-cn/guide/configuration.md

@@ -1064,6 +1064,16 @@ $ export XMAKE_MAIN_REPO = https://github.com/xmake-io/xmake-repo.git
 $ export XMAKE_MAIN_REPO = https://github.com/xmake-mirror/build-artifacts.git
 ```
 
+### XMAKE_THEME
+
+- 设置主题
+
+通常我们可以通过 `xmake g --theme=plain` 来设置颜色主题,但是它是全局的,如果想单独对当前终端会话设置,我们就可以使用这个环境变量来设置。
+
+```console
+$ export XMAKE_THEME=plain
+```
+
 ### XMAKE_STATS
 
 - 开启或禁用用户量统计