update scripts for new macbook air

Signed-off-by: Lee Tang <i@d0zingcat.dev>
This commit is contained in:
Lee Tang
2023-01-15 02:27:27 +08:00
parent 43d45750e6
commit 8039a82736
3 changed files with 76 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ CONFIG_FILES=(
)
CUSTOM_FILES=(
"ssh/config .ssh/config"
# "ssh/config .ssh/config"
"git/config .gitconfig"
)
@@ -110,8 +110,7 @@ function backup() {
}
function recover() {
# sudo xcode-select --install
# sudo softwareupdate --install-rosetta
#softwareupdate --install-rosetta
OS="$(uname)"
# Homebrew
@@ -121,6 +120,7 @@ function recover() {
fi
if [ "$OS" = 'Darwin' ]; then
export PATH=/usr/local/bin/:$PATH
xcode-select --install
elif [ "$OS" = 'Linux' ]; then
export PATH=/home/linuxbrew/.linuxbrew/bin/:$PATH
fi