Artigo Diretório
Instale o HomeBrew
É fácil usar o comando oficial diretamente para obter 443, o motivo que você sabe ^^
Use o script do chefe doméstico https://gitee.com/cunkai/HomebrewCN.git, no gitee, todos podem estrelar pelo caminho e apoiar o chefe .
Comando de instalação:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
emmm ... Pode ser necessário inserir a senha centenas de vezes durante a instalação, o que é normal. . .
Pode ser necessário instalar as ferramentas da linha de comando durante a execução do script. Se a instalação falhar, instale-as no Baidu. Você não poderá entrar em contato comigo. . . (De graça, cara séria)
Pode ser usado após o final
brew -v
Verificar
Instale o google-chrome (Google Chrome)
O HomeBrew já foi instalado, o google-chrome pode ser instalado diretamente com comandos
brew cask install google-chrome
Instalação e configuração oh-my-zsh
Instalar atualização zsh
brew install zsh
Mudar bash para zsh
chsh -s /bin/zsh
Instale oh-meu-zsh
git clone https://gitee.com/mirrors/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
vim ~/.zshrc
Defina seu tema favorito, modifique ZSH_THEME em ~ / .zshrc
ZSH_THEME="xiong-chiamiov"
Os efeitos do tema são os seguintes:
problema resolvido
Na primeira linha mais a referência
ZSH_DISABLE_COMPFIX=true
O objetivo é resolver os seguintes problemas
[oh-my-zsh] For safety, we will not load completions from these directories until
[oh-my-zsh] you fix their permissions and ownership and restart zsh.
[oh-my-zsh] See the above list for directories with group or other writability.
[oh-my-zsh] To fix your permissions you can do so by disabling
[oh-my-zsh] the write permission of "group" and "others" and making sure that the
[oh-my-zsh] owner of these directories is either root or your current user.
[oh-my-zsh] The following command may help:
[oh-my-zsh] compaudit | xargs chmod g-w,o-w
[oh-my-zsh] If the above didn't help or you want to skip the verification of
[oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
[oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc file.
Além disso, adicione a última linha de ~ / .zshrc
source ~/.bash_profile
Isso pode evitar o problema de que as variáveis de ambiente se tornem inválidas depois que o sistema Mac for alterado para zsh.
Resolva o problema de nenhum som após o sono e acordar
Execute as duas frases a seguir no terminal
sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext
Conteúdo do script
on run {input, parameters}
do shell script "" with administrator privileges
set the rootPwd to text returned of (display dialog "Enter your root passwd:" default answer "" with hidden answer)
try
do shell script "echo " & rootPwd & "|sudo -S killall coreaudiod"
do shell script "echo " & rootPwd & "|sudo -S kextunload /System/Library/Extensions/AppleHDA.kext"
do shell script "echo " & rootPwd & "|sudo -S kextload /System/Library/Extensions/AppleHDA.kext"
do shell script "sudo -k" --logout root
display dialog "The operation has been completed. If no problem is fixed,
please restart the system." buttons {"OK"} with icon 1 with title "Success"
on error
display dialog "Password error, please rerun." buttons {"OK"} with icon caution with title "Error"
end try
return input
end run
Terminal usando FTP
brew install lftp
uso
lftp ftp://用户名:密码@地址
Após o login
set ftp:charset gbk
set file:charset utf8
Referência: https://www.jianshu.com/p/78e3651e64ae