Taylor Bockman
5 years ago
1 changed files with 24 additions and 1 deletions
@ -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 |
||||
|
Loading…
Reference in new issue