installdotfiles: force symlinks
This commit is contained in:
parent
af7f016c94
commit
c4d1e5983b
|
@ -1,32 +1,33 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Set up basic symlinks and directory structure when installing dotfiles.
|
# Set up basic symlinks and directory structure when installing dotfiles.
|
||||||
|
# Expected to be idempotent.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# General
|
# General
|
||||||
mkdir -p $HOME/dev
|
mkdir -p $HOME/dev
|
||||||
ln -s $HOME/dev/dotfiles/script $HOME/script
|
ln -sfn $HOME/dev/dotfiles/script $HOME/script
|
||||||
|
|
||||||
# ZSH
|
# ZSH
|
||||||
mkdir -p $HOME/.config/zsh/functions
|
mkdir -p $HOME/.config/zsh/functions
|
||||||
ln -s $HOME/dev/dotfiles/zshenv $HOME/.zshenv
|
ln -sfn $HOME/dev/dotfiles/zshenv $HOME/.zshenv
|
||||||
ln -s $HOME/dev/dotfiles/zshrc $HOME/.config/zsh/.zshrc
|
ln -sfn $HOME/dev/dotfiles/zshrc $HOME/.config/zsh/.zshrc
|
||||||
|
|
||||||
# Tmux
|
# Tmux
|
||||||
ln -s $HOME/dev/dotfiles/tmux.conf $HOME/.tmux.conf
|
ln -sfn $HOME/dev/dotfiles/tmux.conf $HOME/.tmux.conf
|
||||||
|
|
||||||
# Vim
|
# Vim
|
||||||
mkdir -p $HOME/.vim/pack/git-plugins/{opt,start}
|
mkdir -p $HOME/.vim/pack/git-plugins/{opt,start}
|
||||||
ln -s $HOME/dev/dotfiles/vimrc $HOME/.vimrc
|
ln -sfn $HOME/dev/dotfiles/vimrc $HOME/.vimrc
|
||||||
ln -s $HOME/dev/dotfiles/vim/after $HOME/.vim/after
|
ln -sfn $HOME/dev/dotfiles/vim/after $HOME/.vim/after
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
ln -s $HOME/dev/dotfiles/gitconfig $HOME/.gitconfig
|
ln -sfn $HOME/dev/dotfiles/gitconfig $HOME/.gitconfig
|
||||||
mkdir -p $HOME/.config/git
|
mkdir -p $HOME/.config/git
|
||||||
ln -s $HOME/dev/dotfiles/gitignore $HOME/.config/git/ignore
|
ln -sfn $HOME/dev/dotfiles/gitignore $HOME/.config/git/ignore
|
||||||
|
|
||||||
# Alacritty
|
# Alacritty
|
||||||
ln -s $HOME/dev/dotfiles/alacritty.yml $HOME/.config/alacritty.yml
|
ln -sfn $HOME/dev/dotfiles/alacritty.yml $HOME/.config/alacritty.yml
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
Loading…
Reference in New Issue