-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
executable file
·73 lines (61 loc) · 1.55 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/sh
echo "Installing dotfiles..."
echo
# Install neovim dotfiles
if [ ! -d "${HOME}/.nvim" ]; then
echo "Cloning dotnvim repo to ~/.nvim"
git clone [email protected]:cyphactor/dotnvim.git ~/.nvim
cd ~/.nvim
git submodule update --init
echo
else
echo "neovim dotfiles already installed"
fi
ln -sf ~/.nvim/nvmirc ~/.nvimrc
# Install vim dotfiles
if [ ! -d "${HOME}/.vim" ]; then
echo "Cloning dotvim repo to ~/.vim"
git clone [email protected]:cyphactor/dotvim.git ~/.vim
cd ~/.vim
git submodule update --init
echo
else
echo "vim dotfiles already installed"
fi
# Install zsh dotfiles
if [ ! -d "${HOME}/.zsh" ]; then
echo "Cloning dotzsh repo to ~/.zsh"
git clone [email protected]:cyphactor/dotzsh.git ~/.zsh
echo
else
echo "zsh dotfiles already installed"
fi
ln -sf ~/.zsh/zshrc ~/.zshrc
ln -sf ~/.zsh/zshenv ~/.zshenv
# Install tmux dotfiles
if [ ! -d "${HOME}/.tmux" ]; then
echo "Cloning dotzsh repo to ~/.tmux"
git clone [email protected]:cyphactor/dotmux.git ~/.tmux
echo
else
echo "tmux dotfiles already installed"
fi
ln -sf ~/.tmux/tmux.conf ~/.tmux.conf
# Install ack dotfiles
if [ ! -d "${HOME}/.ack" ]; then
echo "Cloning dotack repo to ~/.ack"
git clone [email protected]:cyphactor/dotack.git ~/.ack
echo
else
echo "ack dotfiles already installed"
fi
ln -sf ~/.ack/ackrc ~/.ackrc
# Install git dotfiles
if [ ! -d "${HOME}/.git" ]; then
echo "Cloning dotgit repo to ~/.git"
git clone [email protected]:cyphactor/dotgit.git ~/.git
echo
else
echo "git dotfiles already installed"
fi
ln -sf ~/.git/gitconfig ~/.gitconfig