-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathset_env.sh
executable file
·36 lines (28 loc) · 993 Bytes
/
set_env.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
36
#!/bin/sh
# ----------------------------------------------------------------------
# Author: Yukun Feng
# Date: 05-11-18
# Email: [email protected]
# Description: Copy .vimrc, .zshrc and snippts to home
# ----------------------------------------------------------------------
set -x
cp -r myultisnips $HOME/.vim
cp .vimrc .zshrc .tmux.conf $HOME
cp ./refined.zsh-theme $HOME/.oh-my-zsh/custom/themes
cp ./auto-pairs.vim $HOME/.vim/plugged/auto-pairs/plugin
# setting for indent (avoid overriding by other plugins)
after_plugin_dir="$HOME/.vim/after/ftplugin/"
mkdir -p "$after_plugin_dir"
cp ./python.vim $after_plugin_dir
# setting for vim light color scheme
cp ./Tomorrow.vim $HOME/.vim/plugged/vim-tomorrow-theme/colors/
# set for yapf format
yapf_config="$HOME/.config/yapf/"
mkdir -p $yapf_config
cp ./yapf_style "$yapf_config/style"
# Install fzf
fzf_git="https://github.com/junegunn/fzf.git"
if [ ! -e "~/.fzf" ]; then
git clone --depth 1 $fzf_git ~/.fzf
fi
~/.fzf/install