-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-dot-files.sh
executable file
·68 lines (54 loc) · 1.87 KB
/
setup-dot-files.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
#!/bin/zsh
pushd ~
echo "Deleting old symbolic links..."
rm -rf .emacs.d
rm .fzf.zsh
rm -rf .vim
rm .vimrc
rm .zshrc
rm .zshenv
rm .zprofile
rm .p10k.zsh
rm .gitconfig
rm .lldbinit
echo "Old symbolic links removed"
echo "Creating new symbolic links..."
ln -s dotfiles/.emacs.d .emacs.d
ln -s dotfiles/.vim .vim
ln -s dotfiles/.vimrc .vimrc
ln -s dotfiles/.zshrc .zshrc
ln -s dotfiles/.zshenv .zshenv
ln -s dotfiles/.zprofile .zprofile
ln -s dotfiles/.p10k.zsh .p10k.zsh
ln -s dotfiles/.gitconfig .gitconfig
ln -s dotfiles/.lldbinit .lldbinit
echo "Symbolic links created"
echo "Cloning Vundle for vim..."
git clone --depth 1 https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
echo "Vundle installed"
echo "Installing vim packages..."
vim +PluginInstall +qall
echo "All vim plugins installed"
popd
echo "Cloning oh-my-zsh..."
git clone --depth 1 https://github.com/robbyrussell/oh-my-zsh.git .oh-my-zsh
echo "oh-my-zsh installed"
echo "Cloning and installing fzf..."
git clone --depth 1 https://github.com/junegunn/fzf.git .fzf
printf 'y\ny\ny\n' | ./.fzf/install
echo "fzf installed"
pushd .oh-my-zsh/themes/
echo "Cloning and installing oh-my-zsh theme powerlevel10k..."
git clone --depth 1 https://github.com/romkatv/powerlevel10k.git
echo "powerlevel installed"
popd
echo "Cloning and installing oh-my-zsh plugin syntax-highligting..."
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
echo "plugin installed"
echo "Running emacs packages install script..."
emacs --script ./emacs-install-packages.el
echo "All emacs packages installed"
echo "Installing jedi for python mode"
pip install jedi
echo "If python is installed and pip has worked then Jedi is installed, otherwise install manually"
echo "If on Mac Os run brew using the packages Brewfile in misc/Brewfile, run 'brew bundle' in misc/"