mac m1 brew 安装

https://docs.brew.sh/Installation

brew开始安装:

注意里面有用户名 需要自己替换

 

export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"  
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git" 
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"


export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"  
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git" 
/bin/bash -c ~/brew_install


提示: 
添加环境变量
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/wxb/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
- Add the non-default Git remotes for Homebrew/brew and Homebrew/core in /Users/wxb/.zprofile:
    echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"' >> /Users/wxb/.zprofile
    echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"' >> /Users/wxb/.zprofile
    export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
    export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"

brew update

其他

iterm2 安装rz sz https://www.cnblogs.com/koal/p/6289597.html

iterm2-send-zmodem.sh

#!/bin/bash

osascript -e 'tell application "iTerm2" to version' > /dev/null 2>&1 && NAME=iTerm2 || NAME=iTerm

if [[ $NAME = "iTerm" ]]; then

FILE=$(osascript -e 'tell application "iTerm" to activate' -e 'tell application "iTerm" to set thefile to choose folder with prompt "Choose a folder to place received files in"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")")

else

FILE=$(osascript -e 'tell application "iTerm2" to activate' -e 'tell application "iTerm2" to set thefile to choose folder with prompt "Choose a folder to place received files in"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")")

fi

if [[ $FILE = "" ]]; then

echo Cancelled.

# Send ZModem cancel

echo -e \\x18\\x18\\x18\\x18\\x18

sleep 1

echo

echo \# Cancelled transfer

else

cd "$FILE"

/opt/homebrew/bin/rz -E -e -b --bufsize 4096

sleep 1

echo

echo

echo \# Sent \-\> $FILE

fi

iterm2-recv-zmodem.sh

#!/bin/bash

osascript -e 'tell application "iTerm2" to version' > /dev/null 2>&1 && NAME=iTerm2 || NAME=iTerm

if [[ $NAME = "iTerm" ]]; then

        FILE=`osascript -e 'tell application "iTerm" to activate' -e 'tell application "iTerm" to set thefile to choose file with prompt "Choose a file to send"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")"`

else

        FILE=`osascript -e 'tell application "iTerm2" to activate' -e 'tell application "iTerm2" to set thefile to choose file with prompt "Choose a file to send"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")"`

fi

if [[ $FILE = "" ]]; then

        echo Cancelled.

        # Send ZModem cancel

        echo -e \\x18\\x18\\x18\\x18\\x18

        sleep 1     

        echo        

        echo \# Cancelled transfer

else                      

        /opt/homebrew/bin/sz "$FILE" -e -b

        sleep 1       

        echo

        echo \# Received $FILE

fi

#!/usr/bin/expect

set timeout 30

spawn ssh -p [lindex $argv 0] [lindex $argv 1]@[lindex $argv 2]

expect  "*password:"

send "[lindex $argv 3]\n"

interact

 

iterm2 修改字体 https://www.cnblogs.com/huahuayu/p/12235233.html

sshpass安装

删除自带abc输入法 https://www.jianshu.com/p/0ba1292441b9

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据引用内容,你可以按照以下步骤在M1芯片的Mac安装Redis: 1. 首先,你需要删除之前错误安装的Homebrew。你可以通过在终端中找到并删除`/usr/local`下的Homebrew文件夹来实现。请注意,这将删除之前使用Homebrew安装的所有软件,所以请确保提前备份你的数据。 2. 接下来,你可以使用以下命令重新安装Homebrew: ``` /bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)" ``` 这将使用Gitee上的脚本来安装Homebrew。 3. 安装完成后,你可以使用以下命令来安装Redis: ``` brew install redis ``` 这将使用Homebrew安装Redis。 希望这些步骤能帮助你在M1芯片的Mac上成功安装Redis。 #### 引用[.reference_title] - *1* *2* [mac m1安装homebrew后,使用brew安装redis报错](https://blog.csdn.net/weixin_43823786/article/details/127884798)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [MacBook m1芯片安装brew工具,通过brew安装redis详细教程](https://blog.csdn.net/weixin_44719880/article/details/129304775)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值