-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
66 lines (52 loc) · 2.27 KB
/
install.sh
File metadata and controls
66 lines (52 loc) · 2.27 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
# Make sure we can sudo, to install homebrew
sudo whoami
set -eoux
# https://brew.sh/
NONINTERACTIVE=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" &&
(eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" || eval "$(/opt/homebrew/bin/brew shellenv)") &&
brew install stow
# https://ohmyz.sh/
[ ! -e ~/.oh-my-zsh ] &&
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended &&
git clone https://github.com/MichaelAquilina/zsh-you-should-use.git ~/.oh-my-zsh/custom/plugins/you-should-use &&
[ -f ~/.zshrc ] && mv ~/.zshrc{,.bak}
[ ! -e ~/.dotfiles ] &&
git clone git@github.com:jakebrinkmann/.dotfiles.git ~/.dotfiles
cd "$HOME/.dotfiles/dots" || exit
stow --adopt -t ~ bash git nvim brew ripgrep python psql zsh bin ssh task jq alacritty act copilot
stow --adopt -t ~/.config/ vscode
[[ "$OSTYPE" == "darwin"* ]] &&
stow -t ~/Library/Application\ Support vscode &&
defaults write com.apple.finder AppleShowAllFiles TRUE &&
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerTapGesture -int 2
cd "$HOME" || exit
brew bundle --file ~/.Brewfile
if grep -qE '^ID=(arch|manjaro)$' /etc/os-release; then
sudo pacman -Syu --noconfirm $(grep -v ^# install/arch/packages.txt | xargs)
yay -Syu --noconfirm "$pkg" $(grep -v ^# install/arch/AUR.txt | xargs)
sudo systemctl enable --now docker
# # add resource limits to a Docker service using systemd
# [Service]
# MemoryLimit=10G
# CPUShares=50
sudo usermod -aG docker $USER
# Mouse mode for systemctl (browser resource explorer)
sudo systemctl enable --now cockpit.socket
# Get hostname accessable on LAN
sudo hostnamectl set-hostname thinkpad-t490s
sudo systemctl enable --now avahi-daemon
sudo systemctl disable --now systemd-resolved
# sudo sed -i 's/mdns_minimal/mdns4_minimal/' /etc/nsswitch.conf
# sudo sed -i 's/dns$/dns mdns4/' /etc/nsswitch.conf
sudo systemctl daemon-reload
sudo systemctl restart systemd-networkd
ping thinkpad-t490s.local
echo '/home/linuxbrew/.linuxbrew/bin/zsh' | sudo tee -a /etc/shells >/dev/null &&
chsh -s /home/linuxbrew/.linuxbrew/bin/zsh
else
xcode-select --install || true
fi
bob use stable &&
nvim --version
nvm install --lts &&
node --version