Mac设置比较友好的且带颜色的命令行提示符PS1 如下:
PS1=’[\e]2;\u@\h:\w\a][\e[36;1m]\u@doit:[\e[32;1m]\w[\e[36;1m]> [\e[0m] ‘
Mac vscode 请更新includePath错误修复:
执行以下命令
$gcc -v -E -x c++ -
找到如下内容
#include “…” search starts here:
#include <…> search starts here:
/usr/local/include
/Library/Developer/CommandLineTools/usr/bin/…/include/c++/v1
/Library/Developer/CommandLineTools/usr/lib/clang/11.0.0/include
/Library/Developer/CommandLineTools/usr/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)
End of search list.
将以下一行内容 copy到工作区相应项目目录下的.vscode中的c_cpp_properties.json中
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
效果如下图
hexo发布后重新配置Custom domain
hexo每次发布后都要重新配置Custom domain,即自定义域名失效,出现github404页面,在hexo的blog所在目录下有个source目录,在里面创建一个CNAME文件,然后在里面添加上自己的域名即可:
touch source/CNAME && echo april2nd.top > source/CNAME
本文介绍如何在Mac上设置带有颜色的命令行提示符,并详细解释了如何修复VSCode中includePath的错误,确保C/C++项目正确编译。同时,分享了hexo发布后配置自定义域名的技巧。


630

被折叠的 条评论
为什么被折叠?



