-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall
More file actions
executable file
·28 lines (23 loc) · 909 Bytes
/
Copy pathinstall
File metadata and controls
executable file
·28 lines (23 loc) · 909 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
#!/bin/bash
## dotfiles
cp .vimrc ~/.vimrc
cp .bashrc ~/.bashrc
cp .inputrc ~/.inputrc
cp .tmux.conf ~/.tmux.conf
cp .SFConsole ~/.SFConsole
## vim-plug
if [ ! -f ~/.vim/autoload/plug.vim ]; then
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
sed -ri "s/^colorscheme/\"colorscheme/" ~/.vimrc
vim +PlugInstall +qall
sed -ri "s/^\"colorscheme/colorscheme/" ~/.vimrc
echo "Vim-Plug installed"
fi
## fonts
if [ ! -d ~/.fonts ]; then
curl -fLo ~/.fonts/PowerlineSymbols.otf --create-dirs https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
fc-cache -vf ~/.fonts/
curl -fLo ~/.config/fontconfig/conf.d/10-powerline-symbols.conf --create-dirs https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
echo "Powerline-patched fonts installed"
fi
echo Done!