#!/bin/bash if [ ! -f ~/dotfiles/.vim/autoload/plug.vim ]; then echo "download: ~/dotfiles/.vim/autoload/plug.vim" curl -fLo ~/dotfiles/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim fi for name in \ .emacs.d \ .gitconfig \ .tmux.conf \ .vim \ .vimrc \ .zshrc \ ; \ do if [ ! -L ~/"$name" ]; then echo "symlink: ~/$name" ln -s -f ~/dotfiles/"$name" ~/"$name" fi done if [ ! -d ~/.config ]; then echo "dir: ~/.config" mkdir ~/.config fi for name in \ alacritty \ bat \ git \ ; \ do if [ ! -L ~/.config/"$name" ]; then echo "symlink: ~/.config/$name" ln -s -f ~/dotfiles/.config/"$name" ~/.config/"$name" fi done