-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhappyhacking.sh
executable file
·72 lines (53 loc) · 1.74 KB
/
happyhacking.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
#!/bin/bash
user="erick"
home="/Users/$user"
repo="$home/Developer/setup"
echo "installing brew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# echo "link .tmux.conf"
# ln -s "$repo/tmux/.tmux.conf" $home
echo "link .vimrc"
ln -s "$repo/vim/.vimrc" $home
echo "link new .vim"
rm -rf "$home/.vim"
ln -s "$repo/vim/.vim" $home
# echo "installing tmux using brew"
# brew install tmux
echo "installing Vundle"
git clone https://github.com/VundleVim/Vundle.vim.git $home/.vim/bundle/Vundle.vim
# echo "installing tmux plugin manager"
# git clone https://github.com/tmux-plugins/tpm $home/.tmux/plugins/tpm
#echo "adding zsh to /etc/shells"
#command -v zsh | sudo tee -a /etc/shells
#echo "making zsh the default shell"
#chsh -s $(which zsh)
echo "install ohmyzsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "removing the new .zshrc and linking custom one"
rm "$home/.zshrc"
ln -s "$repo/zsh/.zshrc" $home
echo "linking antigenrc"
ln -s "$repo/zsh/.antigenrc" $home
echo "linking .zsh folder"
rm -rf "$home/.zsh"
ln -s $repo/zsh/.zsh $home
echo "source zshrc, installing antigen plugins"
source $home/.zshrc
echo "linking .gitignore and .gitconfig files"
ln -s $repo/git/.gitignore $home
ln -s $repo/git/.gitconfig $home
# echo "deleting useless files"
# echo "delete .bash_history"
# rm .bash_history
# echo "delete .shell.pre-oh-my-zsh"
# rm .shell.pre-oh-my-zsh
# echo "delete .zshrc.pre-oh-my-zsh"
# rm .zshrc.pre-oh-my-zsh
# echo "delete .bashrc"
# rm .bashrc
# echo "delete .bash_logout"
# rm .bash_logout
echo "further steps:"
echo "install your vim plugins using :PluginInstall"
# echo "install yout tmux plugins using <prefix> + I"
echo "happy hacking!"