Comments (6)
你好 @Maxinsomnia
抱歉给你带来了麻烦。
看了你的历史记录,我唯一怀疑的是 chsrc set brew
有问题,因为之前仅有一个人测试过 homebrew
的换源。我刚才审阅了代码,有一些环境变量写入了你的 ~/.zshrc
与 ~/.bashrc
中,所以请你协助检查一下 ~/.zshrc
文件。
然后检查一下你的 $PATH
是什么。
from chsrc.
感谢 @ccmywish
不好意思这么久才看到您的回复,通过link1和link2的修复方法,删掉注入的配置之后就恢复正常了,目前还没发现什么问题。
是的,$PATH
没有问题,如您所说,有一些变量进入~/.zshrc
文件,这是文件最后的配置信息。
![image](https://private-user-images.githubusercontent.com/26018159/340109732-40bf7e2e-9474-47cd-8aa6-71d1b36e91c9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2ODk1NDIsIm5iZiI6MTcyMTY4OTI0MiwicGF0aCI6Ii8yNjAxODE1OS8zNDAxMDk3MzItNDBiZjdlMmUtOTQ3NC00N2NkLThhYTYtNzFkMWIzNmU5MWM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIyVDIzMDA0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWExYjY2ZDE2YjBkNjlhYmY4MWUxZDhkOGE2ZDcyMzRiMGUyMjgyYmUwODg5ZmMyNWJiODVhNjlmNWE3MmZkODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.A3gSAYcBmizq3XJ19SXBybMBTBHFiH7zZPhAI6VmJh8)
from chsrc.
Hi @Maxinsomnia
我已经调整了代码。但是我看你的截图,不知道为什么~/.zshrc
里写入的那几行末尾会是$
,这是你截图的原因吗,还是文件内容就是那样?
你可下载试用最新版(通过README的链接下载),重新尝试chsrc set homebrew
。现在chsrc
默认会给你的~/.zshrc
和~/.bashrc
备份,所以如果出现了问题,可以直接把备份的文件恢复过来。
from chsrc.
好的谢谢,那可能是因为我有尝试其他的修复手段?我也记不清了
from chsrc.
可以再帮忙测试一下结果吗?如果没问题的话,我准备发布 v0.1.7
了。届时可以直接通过 brew install chsrc
安装。
from chsrc.
from chsrc.
Related Issues (20)
- fork数不足 HOT 2
- `conda` 换源过程中提示信息有些含糊不清 HOT 5
- `docker`镜像中`sudo`不存在 + 配置文件可能不存在 HOT 7
- EndeavourOS 换源缺少 `arch` 命令 HOT 1
- 是否考虑支持更换docker源 HOT 3
- consider marking 0.1.5 tag as latest release HOT 5
- MacOS版本在x64的mac上执行显示bad cpu type HOT 2
- 如果换源方法有问题,或者还未支持该软件换源,我该如何贡献? HOT 3
- 提供一些源,仅供参考。 HOT 9
- 功能需求: 从配置文件中读取源信息而不是写死到.h文件里 HOT 3
- dockerhub 可用源 HOT 7
- Windows 中文显示问题 HOT 13
- Add os armbian HOT 1
- 在Windows上使用Microsoft Store安装的Python换源会遇到权限问题 HOT 4
- 连续两次更换 ubuntu 的源会导致添加出错 HOT 5
- Arch 换源导致 404 HOT 3
- debian换源异常 HOT 2
- MAC换源brew异常 HOT 6
- Rust 换源文本错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chsrc.