dotfiles/script/installdotfiles

34 lines
823 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
#
# Set up basic symlinks and directory structure when installing dotfiles.
2021-04-02 21:14:08 +00:00
# Expected to be idempotent.
set -e
# General
mkdir -p $HOME/dev
2021-04-02 21:14:08 +00:00
ln -sfn $HOME/dev/dotfiles/script $HOME/script
# ZSH
mkdir -p $HOME/.config/zsh/functions
2021-04-02 21:14:08 +00:00
ln -sfn $HOME/dev/dotfiles/zshenv $HOME/.zshenv
ln -sfn $HOME/dev/dotfiles/zshrc $HOME/.config/zsh/.zshrc
# Tmux
2021-04-02 21:14:08 +00:00
ln -sfn $HOME/dev/dotfiles/tmux.conf $HOME/.tmux.conf
# Vim
mkdir -p $HOME/.vim/pack/git-plugins/{opt,start}
2021-04-02 21:14:08 +00:00
ln -sfn $HOME/dev/dotfiles/vimrc $HOME/.vimrc
ln -sfn $HOME/dev/dotfiles/vim/after $HOME/.vim/after
# Git
2021-04-02 21:14:08 +00:00
ln -sfn $HOME/dev/dotfiles/gitconfig $HOME/.gitconfig
mkdir -p $HOME/.config/git
2021-04-02 21:14:08 +00:00
ln -sfn $HOME/dev/dotfiles/gitignore $HOME/.config/git/ignore
# Alacritty
2021-04-02 21:14:08 +00:00
ln -sfn $HOME/dev/dotfiles/alacritty.yml $HOME/.config/alacritty.yml
echo "Done"