-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.sh
executable file
·63 lines (48 loc) · 1.96 KB
/
setup.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
62
63
# MacOS System
# Remove Message of the day prompt
touch $HOME/.hushlogin
# Show hidden files in finder
defaults write com.apple.finder AppleShowAllFiles YES
# Basic file system setup
mkdir -p $HOME/work/git
# TODO: add ssh setup script from github.com/shakeelmohamed/dotfiles
# TODO: rename that repo to dotfiles-old
# TODO: rename this repo to dotfiles
# TODO: git clone this repo, which becomes...
# git clone git@github.com/shakeelmohamed/dotfiles.git
# TODO: these both hijack the shell session and don't let the rest of this file complete
# Install zsh
#sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install brew
#/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# setup GH token here
# https://github.com/settings/tokens/new?scopes=gist,public_repo&description=Homebrew
#and then set the token as: export HOMEBREW_GITHUB_API_TOKEN="your_new_token"
# Install all homebrew packages
# TODO: use a brewfile https://github.com/ahmedelgabri/dotfiles/blob/master/homebrew/Brewfile
while IFS='' read -r line || [[ -n "$line" ]]; do
brew install "$line"
done < "./brew.txt"
# SSH config
stow ssh -t $HOME/
stow bash -t $HOME
rm $HOME/.zshrc
stow zsh -t $HOME
stow vscode -t $HOME
ln -s "$HOME/work/git/stow-dotfiles/vscode/settings.json" "$HOME/Library/Application Support/Code/User/settings.json"
# git
stow git -t $HOME/
git config --global core.excludesfile $HOME/.gitignore
# Sublime text configs
stow sublime -t "$HOME/Library/Application Support/Sublime Text/"
# Karabiner https://github.com/tekezo/Karabiner-Elements; brew install --cask karabiner-elements
stow karabiner -t $HOME/
# Node.js setup
nvm install 16
npm install -g trash-cli
# bro pages, simpler man pages
sudo gem install bropages
# TODO: CLI tool for installing things from app store
# https://github.com/herrbischoff/awesome-osx-command-line
# Get the Monokai terminal theme - this should be last
open ./Monokai.terminal