-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.zsh
executable file
·36 lines (27 loc) · 971 Bytes
/
install.zsh
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
#!/usr/bin/env zsh
DOTFILES=$(dirname ${0:a})
# ctags
ln -sf ${DOTFILES}/.ctags ~/.ctags
# git
ln -sf ${DOTFILES}/.gitignore_global ~/.gitignore_global
ln -sf ${DOTFILES}/.gitconfig ~/.gitconfig
# git-prompt
[[ -f ~/.git-prompt.sh ]] || curl -fLo ~/.git-prompt.sh \
"https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh"
# vscode settings
source ${DOTFILES}/vscode/install.zsh
# vim
# install vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
"https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
mkdir -p ~/.vim/colors
mkdir -p ~/.vim/after/syntax
ln -sf ${DOTFILES}/.vim/colors/unmade.vim ~/.vim/colors/unmade.vim
ln -sf ${DOTFILES}/.vim/syntax/python.vim ~/.vim/after/syntax/python.vim
ln -sf ${DOTFILES}/.vimrc ~/.vimrc
# zsh
ln -sf ${DOTFILES}/.aliases ~/.aliases
ln -sf ${DOTFILES}/.zshenv ~/.zshenv
ln -snf ${DOTFILES}/.zsh ~/.zsh
ln -sf ${DOTFILES}/.zshrc ~/.zshrc
source ${DOTFILES}/.zshrc