-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.install.sh
executable file
·61 lines (47 loc) · 2.05 KB
/
.install.sh
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
#!/bin/bash
echo "Installing commandline tools..."
xcode-select --install
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew analytics off
echo "Installing Homebrew packages..."
brew update
brew bundle install --cleanup --file=~/.config/homebrew/Brewfile --no-lock
brew upgrade
echo "Switching to fish shell..."
sudo echo /usr/local/bin/fish >>/etc/shells
chsh -s /usr/local/bin/fish
echo "Changing macOS defaults..."
defaults write com.apple.dock autohide -bool true
defaults write com.apple.spaces spans-displays -bool false
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write NSGlobalDomain KeyRepeat -int 1
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool false
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false
defaults write com.apple.finder ShowMountedServersOnDesktop -bool false
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool false
defaults write com.apple.Finder AppleShowAllFiles -bool true
echo "Installing poetry..."
pipx install poetry
echo "Installing tpm..."
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo "Installing Fisher..."
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
echo "Installing Fisher packages..."
fisher install PatrickF1/fzf.fish
fisher install catppuccin/fish
echo "Configuring poetry..."
poetry config virtualenvs.in-project true
poetry config virtualenvs.prefer-active-python true
echo "Configuring dotfiles..."
alias --save dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
echo ".dotfiles" >>.gitignore
git clone --bare https://github.com/collindutter $HOME/.dotfiles
dotfiles checkout
dotfiles config --local status.showUntrackedFiles no
echo "Configuring neovim virtualenvs..."
mkdir .virtualenvs
python -m venv .virtualenvs/py3nvim
./virtualenvs/bin/pip install pynvim
python -m venv .virtualenvs/debugpy
./virtualenvs/bin/pip install debugpy