-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·44 lines (38 loc) · 1008 Bytes
/
install.sh
File metadata and controls
executable file
·44 lines (38 loc) · 1008 Bytes
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
#!/bin/bash
populate () {
cd ~/dotfiles
for i in {zshrc,vimrc,screenrc,gitconfig}
do
ln -sf ~/dotfiles/$i ~/.${i}
done
mkdir -p ~/.config/ghostty
ln -sf ~/dotfiles/ghostty.cfg ~/.config/ghostty/config
}
install_ohmyzsh () {
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
curl -fsSL https://gist.githubusercontent.com/cprimera/6226629/raw/0e9cd73e48d2a967ead3514aaaba187242eff48b/cprimera.zsh-theme > ~/.oh-my-zsh/themes/cprimera.zsh-theme
}
install_brew () {
if [ "`uname -s`" == "Darwin" ]
then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
}
install_brew_packages () {
if command -v brew 2>&1 >/dev/null
then
brew bundle install
fi
}
if [ ! -d "${HOME}/dotfiles" ]
then
git clone https://github.com/cprimera/dotfiles ~/dotfiles
fi
install_ohmyzsh
populate
install_brew
install_brew_packages
if [ "`uname -s`" == "Darwin" ]
then
~/dotfiles/osx
fi