From d8aee9384227dc796bfca15e6e2ea0e5a0b26b1a Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Fri, 10 Jan 2020 16:20:40 -0800 Subject: [PATCH] update dotfiles dropper --- arch-configs/dotfiles.sh | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/arch-configs/dotfiles.sh b/arch-configs/dotfiles.sh index ea30518..ea18fad 100755 --- a/arch-configs/dotfiles.sh +++ b/arch-configs/dotfiles.sh @@ -1,7 +1,30 @@ +#! /usr/bin/env bash + # Expects your essentials directory to live in your # home directory. +# +# Deletes/overwrites all previous dotfiles. + +rm $HOME/.bashrc +rm $HOME/.bash_profile +rm -rf $HOME/.emacs.d +rm -rf $HOME/.config/nvim +rm $HOME/.global_gitignore -sudo ln -s $HOME/essentials/dotfiles/zshrc $HOME/.zshrc +sudo ln -s $HOME/essentials/dotfiles/bash/bashrc $HOME/.bashrc +sudo ln -s $HOME/essentials/dotfiles/bash/bash_profile $HOME/.bash_profile sudo ln -s $HOME/essentials/dotfiles/emacs.d $HOME/.emacs.d sudo ln -s $HOME/essentials/dotfiles/tmux.conf $HOME/.tmux.conf +sudo ln -s $HOME/essentials/dotfiles/config/nvim $HOME/.config/nvim +sudo ln -s $HOME/essentials/dotfiles/global_gitignore $HOME/.global_gitignore + +if [[ "$OS_TYPE" == "gnu-linux" ]]; then + sudo ln -s $HOME/essentials/bash/linuxrc $HOME/.linuxrc +fi + +if [[ "$OS_TYPE" == "darwin"* ]]; then + sudo ln -s $HOME/essentials/bash/macrc $HOME/.macrc +fi + +sudo ln -s $HOME/essentials/bash/inputrc $HOME/.inputrc