Zsh / Oh-my-zsh是什么?

Shell俗称壳(用来区别于核Kernel),是指“为使用者提供操作界面”的软件(命令解析器)。Shell也用于泛指所有为用户提供操作介面的程序,而核(kernel)不具有和用户的交互功能。我们通常用的Shell是Bash,Zsh是Shell的一种。

使用cat /etc/shells命令可以查看系统里的shells名录。

安装方式

通过curl安装

sh -c “$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”

通过wget安装

sh -c “$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”

常见问题:

1. Curl 不能建立安全连接

问题描述:

ZXs-MacBook-Pro:Programing zx$ /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

解决办法:

curl需要加上-k,wget需要加上--no-check-certificate。

curl —header “PRIVATE-TOKEN: Nf1kK4MeF4fPMo7d4jY2” https://172.16.0.168/api/v4/projects?search=xxxx -k

wget 'https://172.16.0.168/api/v4/projects?search=xxxx -k' --no-check-certificate
Last modification:January 10, 2023
您赞赏,我就多写点儿。