-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.install.sh
executable file
·51 lines (42 loc) · 1.4 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
#!/bin/sh
TARGET=$HOME/.dotfiles
# Script that helps configure a brand new setup
echo "Configuring brand new setup"
alias config='/usr/bin/git --git-dir=$TARGET --work-tree=$HOME'
echo ".dotfiles" >> .gitignore
git clone --bare https://github.com/itscatherinelee/dotfiles.git $TARGET
alias config='/usr/bin/git --git-dir=$TARGET --work-tree=$HOME'
config config --local status.showUntrackedFiles no
# Create sysmlinks for your modules
ln -s $TARGET/.vim/init.vim $HOME/.vimrc
echo "Downloading brew"
# Download homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
pkg_list=(node nvm tmux vim)
app_list=(atom dropbox iterm2 sublime-text visual-studio-code)
echo "Downloading libraries"
for pkg in "${pkg_list[@]}"
do
echo "Installing $pkg"
if brew list $pkg > /dev/null; then
echo "Package library $pkg is already installed"
else
echo "Installing $pkg"
brew install $pkg
fi
done
echo "Downloading applications"
for app in "${app_list[@]}"
do
echo "Installing $app"
if brew list $app > /dev/null; then
echo "Application $app is already installed"
else
echo "Installing $app"
brew install --cask $app
fi
done
# Download powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
# Download vim plugin
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim