-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·51 lines (37 loc) · 1.47 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
#!/bin/zsh
# This function will sync dotfiles to the homefolder
function copyDotFiles() { rsync --exclude ".git/" --exclude "setup.sh" --exclude "README.md" --exclude "iterm2profile" -avh --no-perms . ~;
}
copyDotFiles()
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install my dotfiles
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# Updating and upgrading brew
# Later (after we activated zsh with oh-my-zsh) you can use `bubu` alias for this
brew update
brew upgrade
# Installing basic toolchain
brew install zsh tree nvim iterm2 font-fira-code-nerd-font
# Install additional devtools
brew install node
# install additional software
brew install steam freecad
# Don't create .DS_Store files on network shares (need logout / login)
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
# Apply my profile for iTerm2
defaults import com.googlecode.iterm2 iterm2profile.plist
# Setup crontab
crontab .crontab
# Setup vim (as a backup besides neoVim)
# Installing vim Vundle
vundle_dir="${HOME}/.vim/bundle/vundle"
vundle_repository="https://github.com/gmarik/vundle.git"
if [ ! -d "${vundle_dir}" ]; then
git clone -q "${vundle_repository}" "${vundle_dir}"
fi
# Install the plugins
vim -c "BundleInstall" -c "qa"