forked from jonasjucker/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·55 lines (39 loc) · 973 Bytes
/
install.sh
File metadata and controls
executable file
·55 lines (39 loc) · 973 Bytes
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
#!/bin/bash
echo Setup vim-extensions***
vim_plugin_dir=~/.vim/vim-extensions
mkdir -p $vim_plugin_dir
git submodule init &> /dev/null
git submodule update &> /dev/null
cd vim-extensions
for name in *; do
if [ -d "$name" ] && [ ! -L "$name" ]; then
echo " Link $name to $vim_plugin_dir"
ln -s -f $(pwd)/$name $vim_plugin_dir
fi
done
echo " Link colors to ~/.vim/colors"
ln -s -f $(pwd)/colors ~/.vim/.
cd ..
echo "Link profile"
ln -s -f $(pwd)/profile ~/.profile
echo "Link bashrc"
ln -s -f $(pwd)/bashrc ~/.bashrc
echo "Link zshrc"
ln -s -f $(pwd)/zshrc ~/.zshrc
echo "Link p10k.zsh"
ln -s -f $(pwd)/p10k.zsh ~/.p10k.zsh
echo "Link aliases.zsh"
ln -fs $(pwd)/aliases.zsh $HOME/.oh-my-zsh/custom
echo "Link vimrc"
ln -s -f $(pwd)/vimrc ~/.vimrc
echo "Link ssh-config"
ln -s -f $(pwd)/config ~/.ssh/config
echo ""
echo "Run:"
echo ""
echo "source ~/.zshrc"
echo ""
echo ":PluginInstall in Vim"
echo ""
echo "to complete installation"
echo ""