
zsh
coding_most
超级喜欢封装代码
展开
-
.zshrc和.bash_profile同时生效解决方案
设置zsh自动提示后,发现之前配置的环境变量失效了,比如在调试android设备时,提示adb 不存在,执行source .bash_profile发现adb可以用,但是重新启动终端发现adb命令又失效了。两种解决方案:1、把.bash_profile里面配置的内容,copy到.zshrc里面,这样就可以找到adb命令2、在.zshrc里面添加 source .bash_profile,也可以找到adb命令特此标记!...原创 2020-06-27 00:02:47 · 2464 阅读 · 1 评论 -
Mac zsh Shell 添加自动提示
查看shells1、cat /etc/shells修改shell2、chsh -s /bin/zsh3、安装.oh_my_sdhgit clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh4、vim .bash_profile5、添加 export ZSH_CUSTOM=“/Users/xxx/.oh-my_zsh/custom"6、安装zsh-autosuggestionsgit clone gi.原创 2020-06-21 08:28:44 · 1079 阅读 · 0 评论