File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ set -euo pipefail
3
3
4
4
# setup brew for macs
5
5
if [ " $( uname) " = " Darwin" ] && [ ! -f /usr/local/bin/brew ]; then
6
- /usr/ bin/ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master /install) "
6
+ /bin/bash -c " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD /install.sh ) "
7
7
fi
8
8
9
- cat brew_list.txt | xargs brew install
10
- cat brew_cask.txt | xargs brew install --cask
9
+ cat " $SCRIPT_DIR /mac/ brew_list.txt" | xargs brew install
10
+ cat " $SCRIPT_DIR /mac/ brew_cask.txt" | xargs brew install --cask
11
11
12
12
# java使わんからなぁ
13
13
# setup sdkman for java
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- cp ~ /.zshrc ~ /.zshrc.bak
2
+ #! /bin/bash
3
+
4
+ # Backup .zshrc if it exists
5
+ if [ -f ~ /.zshrc ]; then
6
+ cp ~ /.zshrc ~ /.zshrc.bak
7
+ echo " Backed up existing .zshrc"
8
+ fi
9
+
10
+ # Copy new .zshrc
3
11
cp -f _zshrc ~ /.zshrc
4
- cp ~ /.p10k.zsh ~ /.p10k.zsh.bak
12
+ echo " Copied new .zshrc"
13
+
14
+ # Backup .p10k.zsh if it exists
15
+ if [ -f ~ /.p10k.zsh ]; then
16
+ cp ~ /.p10k.zsh ~ /.p10k.zsh.bak
17
+ echo " Backed up existing .p10k.zsh"
18
+ fi
19
+
20
+ # Copy new .p10k.zsh
5
21
cp -f _p10k.zsh ~ /.p10k.zsh
22
+ echo " Copied new .p10k.zsh"
6
23
7
24
# copy pub key
8
25
mkdir -p ~ /.ssh/
You can’t perform that action at this time.
0 commit comments