![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其他
清风了了
这个作者很懒,什么都没留下…
展开
-
bash、zsh显示git分支
1.bash显示git分支(1)编辑.bash_profile文件sudo vim ~/.bash_profile(2)向文件中添加代码parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'}export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "(3)保存文件,并更新配原创 2021-02-27 00:49:27 · 5275 阅读 · 1 评论 -
mac 找不到nvm命令解决方法
1.安装nvmcurl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash2.解决commond not found:nvm(1)进入.nvm文件夹cd ~/.nvm(2)查看有没有.bash_profile文件如果有的话直接打开open .bash_profile如果没有的话先新建touch .bash_profile(3)在.bash_profile文原创 2020-11-11 11:42:22 · 4881 阅读 · 3 评论 -
Mac安装homebrew
1.官网下载homebrew的链接/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"但是国内下载非常慢,经常卡在一个地方不动。找了很多解决方法,东拼西凑,总结一下最后解决的方案(1)获取homebrew文件到本地网上的做法是curl -fsSL https://raw.githubusercontent.com/Homebrew/i.原创 2020-10-17 00:51:58 · 843 阅读 · 0 评论