-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·35 lines (32 loc) · 1.34 KB
/
install.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
#!/bin/sh
set -e
ln -sf $HOME/.vim/vimrc $HOME/.vimrc
tmux_version=$(dpkg -s tmux | grep '^Version:' | sed 's/^Version: //' | grep -o '^[0-9]')
if [ $tmux_version -ge 3 ]; then
echo "Detected Tmux 3.x or newer"
ln -sf $HOME/.vim/tmux3.conf $HOME/.tmux.conf
else
echo "Detected Tmux 2.x"
ln -sf $HOME/.vim/tmux.conf $HOME/.tmux.conf
fi
ln -sf $HOME/.vim/screenrc $HOME/.screenrc
ln -sf $HOME/.vim/zshrc $HOME/.zshrc
ln -sf $HOME/.vim $HOME/.config/nvim
ln -sf $HOME/.vim/vimrc $HOME/.config/nvim/init.vim
test -d $HOME/.mutt || mkdir $HOME/.mutt
ln -sf $HOME/.vim/mutt-aliases $HOME/.mutt/aliases
ln -sf $HOME/.vim/muttrc $HOME/.muttrc
ln -sf $HOME/.vim/lapis256.muttrc $HOME/.mutt/lapis256.muttrc
test -d $HOME/.config/terminator || mkdir $HOME/.config/terminator
ln -sf $HOME/.vim/terminator-config $HOME/.config/terminator/config
if [ ! -e $HOME/.config/nvim/autoload/plug.vim ]; then
curl -fLo $HOME/.config/nvim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugInstall
fi
echo "Remaining tasks:"
echo " * install terminator with vte3 support (for true colors)"
echo " * install tmux with Tc support"
echo " * install powerline fonts (https://github.com/powerline/fonts.git)"
echo " * install cscope, python3-neovim"
echo " * under neovim, type: :UpdateRemotePlugins and restart nvim (just once)"