summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorxq114 <[email protected]>2022-02-21 14:14:35 +0800
committerxq114 <[email protected]>2022-02-21 14:14:35 +0800
commit2f76f4827888ec2ad996574d9370d40b37207dfb (patch)
treef5f6117d14c7708eba46f900105d8540e7e73e35 /xmake/modules
parent422f43266ebf78f4cef79a8d82c5a36acf14daae (diff)
improve shell features
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/xrepo/action/env.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua
index a61a184b8..d0418ee90 100644
--- a/xmake/modules/private/xrepo/action/env.lua
+++ b/xmake/modules/private/xrepo/action/env.lua
@@ -470,8 +470,11 @@ function main()
local envname = assert(option.get("program"), "please set environment config name!")
os.rm(path.join(_get_envsdir(), envname .. ".lua"))
else
- local envs = _package_getenvs()
local program = option.get("program")
+ if program and program == "shell" then
+ utils.warning("The shell was not integrated with xmake. Some features might be missing. Please switch to your default shell, and run `xmake update --integrate` to integrate the shell.")
+ end
+ local envs = _package_getenvs()
if program and not option.get("show") then
if envs and envs.PATH then
os.setenv("PATH", envs.PATH)