-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·38 lines (29 loc) · 965 Bytes
/
install
File metadata and controls
executable file
·38 lines (29 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
# -e : スクリプトの実行中にエラーが起こった場合はそこで停止
# -u : 未定義の変数があればそこで停止
set -eu
# 実行するスクリプトの位置に移動
cd `dirname $0`
# Homebrew
# if [ ! -f /usr/local/bin/brew ]; then
# echo "installing homebrew ..."
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# fi
# if [ ! -d ~/dotfiles ]; then
# cd ~
# git clone https://github.com/kitamuraDev/dotfiles.git
# fi
# brew bundle
echo "run brew bundle ..."
brew bundle -v --file=~/dotfiles/Brewfile
# 各種パッケージを配置するための .config ファイルを作成する(miseやnvim は ~/.config 直下に置く必要がある)
if [ ! -d ~/.config ]; then
mkdir ~/.config
fi
# stow
stow -v -d ~/dotfiles/packages -t ~ git idea mise vim nvim yazi zsh
# mise
echo "run mise install ..."
mise install
# .zshrcを読み込む
source ~/.zshrc