forked from mwamodo/bin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·54 lines (40 loc) · 1.41 KB
/
install
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
#!/bin/bash
DOTFILES=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
rm -f $HOME/.zshrc
ln -s $DOTFILES/.zshrc $HOME/.zshrc
# link copyright script
mkdir -p $HOME/.local/bin
rm -rf $HOME/.local/bin/copyright
ln -s $DOTFILES/scripts/copyright $HOME/.local/bin/copyright
# add warp themes
rm -f $HOME/.warp
ln -s $DOTFILES/warp $HOME/.warp
# kitty terminal
rm -rf $HOME/.config/kitty
ln -s $DOTFILES/kitty $HOME/.config/kitty
# tmux
rm -f $HOME/.tmux.conf
ln -s $DOTFILES/tmux/tmux.conf $HOME/.tmux.conf
rm -f $HOME/.local/bin/t
ln -s $DOTFILES/.scripts/t $HOME/.local/bin/t
rm -rf $HOME/.config/nvim
ln -s $DOTFILES/nvim $HOME/.config/nvim
# link your $HOME/.vimrc to $HOME/bin/.vimrc
rm -f $HOME/.vimrc
ln -s $DOTFILES/.vimrc $HOME/.vimrc
# create .vim, and .vim/colors directory
rm -rf "${HOME}/.vim"
mkdir -p "${HOME}/.vim/colors"
# copy vim themes to the created colors directory
cp "${HOME}/bin/vim/colors/cobalt2.vim" "${HOME}/.vim/colors"
cp "${HOME}/bin/vim/colors/atom-dark.vim" "${HOME}/.vim/colors"
# set up vim plugins with Vundle
mkdir -p "${HOME}/.vim/bundle"
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
ln -s "${HOME}/bin/vim/plugins.vim" "${HOME}/.vim/plugins.vim"
vim +PluginInstall +qall
# link gitignore global
rm -f "${HOME}/.gitignore"
ln -s "${HOME}/bin/.gitignore" "${HOME}/.gitignore"
# tell git about the global gitignore file
git config --global core.excludesfile ~/.gitignore