~增加设置别名时与系统内置命令/别名进行校验的功能

~修复自定义别名报错的bug
~修复还原面板节点时因为部分节点名包含冒号而还原失败的bug
This commit is contained in:
juewuy
2025-12-14 10:45:14 +08:00
parent 2247dbe58a
commit 9be192b29d
3 changed files with 17 additions and 11 deletions

View File

@@ -261,6 +261,7 @@ if [ -n "$profile" ]; then
set_profile "$profile"
#适配zsh环境变量
zsh --version >/dev/null 2>&1 && [ -z "$(cat ~/.zshrc 2>/dev/null | grep CRASHDIR)" ] && set_profile '~/.zshrc' 2>/dev/null
setconfig my_alias "$my_alias"
else
echo -e "\033[33m无法写入环境变量请检查安装权限\033[0m"
exit 1