-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·48 lines (35 loc) · 1.17 KB
/
install.sh
File metadata and controls
executable file
·48 lines (35 loc) · 1.17 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
#!/bin/bash
DOTFILES=$HOME/.dotfiles
ZPREZTO=$DOTFILES/zsh
echo "installing dotfiles"
echo "initializing submodule(s)"
git submodule update --init --recursive
# echo "initializing prezto submodule(s)"
# cd $ZPREZTO
git submodule update --init --recursive
cd $DOTFILES
source install/link.sh
# always install zprezto after link
# source install/zprezto.sh
if [ "$(uname)" == "Darwin" ]; then
echo "running on OSX"
echo "installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/eliramshatz/.zprofile
# eval "$(/opt/homebrew/bin/brew shellenv)"
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "brewing all the things"
source install/brew.sh
# echo "piping all the things"
# source install/pip.sh
echo "updating OSX settings"
source installosx.sh
else
echo "running on Ubuntu (probably)"
echo "apt-get install all"
source install/ubuntu.sh
fi
# install lunarvim
source install/lunarvim.sh
echo "configuring zsh as default shell"
sudo chsh -s $(which zsh)