You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo vi /etc/sudoers
找到:
# root and users in group wheel can run anything on any machine as any user
root ALL = (ALL) ALL
%admin ALL = (ALL) ALL
修改为:
# root and users in group wheel can run anything on any machine as any user#root ALL = (ALL) ALL#%admin ALL = (ALL) ALL
root ALL = (ALL) NOPASSWD: NOPASSWD: ALL
%admin ALL = (ALL) NOPASSWD: NOPASSWD: ALL
软件
开发
之前一直用公司的 Mac , 环境直接安装没啥问题,自己入手的 mbp 就遇到一些问题,记录一下。
shell scripts 包管理器
Basher 允许您直接从 github(或其他站点)快速安装 shell 软件包。 basher 无需为每个软件包寻找特定的安装说明并弄乱您的路径,而是将为所有软件包创建一个中心位置并为您管理其二进制文件。
https://github.com/basherpm/basher
Terminal 总是要输入用户密码,或者 npm install 总需要 sudo 权限
修改
~/.bash_profile
文件环境变量& source 了也不生效vim ~/.zshrc
创建文件~/.zshrc
文件最后,增加一行:source ~/.bash_profile
source ~/.zshrc
各环境文件补充说明:MAC OSX环境变量$PATH
使用 rmtrash 替代 rm -rf
避免误删文件无法恢复
gyp: No Xcode or CLT version detected!
gyp: No Xcode or CLT version detected macOS Catalina | Anansewaa
VPN 全局代理
1.bash_profile Alias
bash_profile 设置加入HTTP 和 HTTPS
2.ClashX 配置文件
在ClashX的配置文件中加入 - 'DOMAIN-SUFFIX,cip.cc,Proxy'
这一步的设置是可以走规则判断,不用使用全局模式
The text was updated successfully, but these errors were encountered: