-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.conf.yaml
More file actions
77 lines (74 loc) · 2.29 KB
/
Copy pathinstall.conf.yaml
File metadata and controls
77 lines (74 loc) · 2.29 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
- defaults:
link:
create: true
relink: true
force: true
shell:
quiet: true
- shell:
- description: Validating sudo credentials
command: "sudo --validate"
- clean: ["~"]
- link:
~/.gitconfig: gitconfig
~/.tmux.conf: tmux/tmux.conf
~/.config/sesh: tmux
~/.config/nvim: nvim
~/.config/fish: fish
~/.config/ghostty: ghostty
~/.config/karabiner: karabiner
~/.config/opencode: opencode
~/.config/starship.toml: starship/starship.toml
~/.claude/settings.json: claude/settings.json
- create:
- ~/Code
- shell:
- description: Hushing login
command: "[ -f ~/.hushlogin ] || touch ~/.hushlogin"
# macOS: Install packages via Homebrew
- description: Installing brew (macOS)
command: |
if [ "$(uname)" = "Darwin" ]; then
[ -x "$(which brew)" ] || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
- description: Updating brew (macOS)
command: |
if [ "$(uname)" = "Darwin" ] && command -v brew >/dev/null 2>&1; then
brew update
fi
- description: Installing brew bundler (macOS)
command: |
if [ "$(uname)" = "Darwin" ] && command -v brew >/dev/null 2>&1; then
brew tap homebrew/bundle
fi
- description: Installing brewfile bundle (macOS)
command: |
if [ "$(uname)" = "Darwin" ] && command -v brew >/dev/null 2>&1; then
brew bundle
fi
stdout: true
stderr: true
- description: Removing old brew files (macOS)
command: |
if [ "$(uname)" = "Darwin" ] && command -v brew >/dev/null 2>&1; then
brew cleanup
fi
# Linux: Install packages via apt and custom script
- description: Installing apt packages (Linux)
command: |
if [ "$(uname)" = "Linux" ] && command -v apt >/dev/null 2>&1; then
echo "Installing packages from packages.apt..."
sudo apt update
grep -v '^#' packages.apt | grep -v '^$' | xargs sudo apt install -y
fi
stdout: true
stderr: true
- description: Running Linux install script
command: |
if [ "$(uname)" = "Linux" ] && [ -f install-linux.sh ]; then
./install-linux.sh
fi
stdout: true
stderr: true
- description: Clearing sudo credential cache
command: "sudo --reset-timestamp"