-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup
executable file
·59 lines (44 loc) · 1.69 KB
/
setup
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
56
57
58
59
#!/bin/zsh
# 既にあれば削除して再度張り直す
for rc in gemrc gitconfig screenrc tmux.conf tmux-powerlinerc zshrc vim vimrc
do
rm -f ~/.$rc && ln -s ~/dotfiles/$rc ~/.$rc
done
mkdir -p ~/.config/nvim
ln -s ~/dotfiles/nvim_config/init.vim ~/.config/nvim/init.vim
mkdir -p ~/.vim/pack/git-plugins/start
git clone https://github.com/w0rp/ale.git ~/.vim/pack/git-plugins/start/ale
rm -f ~/.vimshrc && ln -s ~/dotfiles/zshrc.alias ~/.vimshrc
curl https://raw.githubusercontent.com/Shougo/dein-installer.vim/master/installer.sh > installer.sh
sh ./installer.sh ~/.cache/dein
which rustup
if [ $? = 0 ]; then
rustup toolchain add nightly
fi
which cargo
if [ $? = 0 ]; then
cargo +nightly install racer
fi
# pyenv + plenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
git clone https://github.com/tokuhirom/plenv.git ~/.plenv
# pipx
python3 -m pip install --user pipx
python3 -m pipx ensurepath
uname=`uname -s`;
if [[ $uname -eq "Darwin" ]]; then
brew install reattach-to-user-namespace
brew install kube-ps1
brew install peco
fi
# tmux powerline
rm -rf ~/dotfiles/tmux/tmux-powerline
git clone https://github.com/erikw/tmux-powerline ~/dotfiles/tmux/tmux-powerline
ln -s ~/dotfiles/tmux/my-tmux-powerline/themes/mytheme.sh ~/dotfiles/tmux/tmux-powerline/themes/mytheme.sh
patch -u ~/dotfiles/tmux/tmux-powerline/segments/vcs_branch.sh < ~/dotfiles/tmux/my-tmux-powerline/segments/vcs_branch.patch
# zplug
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
# zsh-completions
git clone git://github.com/zsh-users/zsh-completions.git /usr/local/share/zsh-completion
# kube_ps1
git clone [email protected]:jonmosco/kube-ps1.git ~/kube-ps1