-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_dotfiles.sh
125 lines (90 loc) · 3.44 KB
/
setup_dotfiles.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Generates colored output.
function special_echo {
echo -e '\E[0;32m'"$1\033[0m"
}
special_echo "Install Homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# BREW
brew update
# GIT
brew install git
brew install git-extras
brew install hub
brew install wget
brew tap homebrew/services
# terminal
brew install iterm2
brew install tmux
brew install tmuxinator
brew install vim --override-system-vim
brew install reattach-to-user-namespace
brew install the_silver_searcher
brew install fzf #https://github.com/junegunn/fzf
# development
brew install rbenv ruby-build rbenv-default-gems rbenv-use
brew install python3
brew install mysql
# NODE
brew install node
# VIM / TMUX Status bar
pip install powerline-status
pip install psutil
# TMUX Plugin Manager
# https://github.com/tmux-plugins/tpm#installation
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Z
brew install z
# WEECHAT
# brew install weechat --with-aspell --with-curl --with-python --with-perl --with-ruby --with-lua --with-guile
# echo "Linking weechat settings"
# ln -sf $DIR/weechat/weechat.conf $HOME/.weechat/weechat.conf
# ln -sf $DIR/weechat/buffers.conf $HOME/.weechat/buffers.conf
special_echo "Install Oh-My-Zsh"
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
echo "Unpacking powerline_fonts"
unzip powerline_fonts.zip
echo "Install Powerline fonts"
./powerline_fonts/install.sh
echo "Removing powerline_fonts directory"
rm -rf powerline_fonts
mkdir $HOME/.config
echo "Link Powerline config files to homedirectory config folder"
ln -s /usr/local/lib/python3.8/site-packages/powerline/config_files $HOME/.config/powerline
echo "Linking agignore file"
ln -s $DIR/agignore $HOME/.agignore
echo "Linking irbrc file"
ln -s $DIR/irbrc $HOME/.irbrc
echo "Linking pryrc file"
ln -s $DIR/pryrc $HOME/.pryrc
echo "Linking pryrc file"
ln -s $DIR/gemrc $HOME/.gemrc
mkdir $HOME/.rbenv
echo "Configuring global gitignore file"
git config --global core.excludesfile $DIR/gitignore
echo "Setting $HOME/.vim to link to $DIR/_vim directory"
ln -s $DIR/vim $HOME/.vim
echo "Installing NVM for Node"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | zsh
echo "Installing Node latest"
nvm install --latest-npm
echo "Installing ZSH Spaceship theme"
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
echo "Installing ZSH Syntax Highlighting"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
echo "Writing homedir files"
echo "Linking rbenv default-gems file file"
ln -s $DIR/rbenv/default-gems $HOME/.rbenv/default-gems
special_echo "Setting up $HOME/.zshrc"
echo "source $DIR/zshrc\n source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> $HOME/.zshrc
special_echo "Settting up $HOME/.tmux.conf"
echo "source $DIR/tmux.conf" > $HOME/.tmux.conf
special_echo "Overwriting up $HOME/.gitconfig"
$echo -e "[include]\n path = $DIR/gitconfig" > $HOME/.gitconfig
echo "Installing ZSH AutoSuggestions"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
echo "Setting up FZF"
$(brew --prefix)/opt/fzf/install
*/