aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorHumphrey Lin <[email protected]>2020-12-01 18:10:09 +0000
committerHumphrey Lin <[email protected]>2020-12-01 18:10:09 +0000
commit514eab77de4da4b9ffb4c411d81729d04e55588f (patch)
treee601f5f0d4737c7b2b8c98fde6c5020babee2238 /install.sh
parent3e322ad69f8a2e6dad7f41df0d426258a15fa999 (diff)
downloaddotfiles-514eab77de4da4b9ffb4c411d81729d04e55588f.tar.gz
dotfiles-514eab77de4da4b9ffb4c411d81729d04e55588f.tar.bz2
dotfiles-514eab77de4da4b9ffb4c411d81729d04e55588f.zip
Add config of i3wm and modify the EDITOR in .zshrc
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh24
1 files changed, 10 insertions, 14 deletions
diff --git a/install.sh b/install.sh
index 60881f1..c592850 100644
--- a/install.sh
+++ b/install.sh
@@ -20,20 +20,16 @@ get_dotfiles() {
(
echo "--------- Get Dotfiles Now ---------"
- read -r -p "It will remove the .dotfiles folder if it exists and overwrite all dotfiles. Are you sure? [y/N] " response
- response=${response,,} # tolower
- if [[ "$response" =~ ^(yes|y)$ ]]; then
-
- cd "$HOME"
- rm -rf .dotfiles
- git clone https://github.com/humpylin/dotfiles .dotfiles
-
- rm -rf .vimrc .tmux.conf .bashrc .zshrc
- ln -s .dotfiles/.vimrc .vimrc
- ln -s .dotfiles/.tmux.conf .tmux.conf
- ln -s .dotfiles/.bashrc .bashrc
- ln -s .dotfiles/.zshrc .zshrc
- fi
+
+ cd "$HOME"
+
+ rm -rf .vimrc .tmux.conf .bashrc .zshrc .i3/config .emacs.d/init.el
+ ln -s .dotfiles/.vimrc .vimrc
+ ln -s .dotfiles/.tmux.conf .tmux.conf
+ ln -s .dotfiles/.bashrc .bashrc
+ ln -s .dotfiles/.zshrc .zshrc
+ ln -s .dotfiles/.emacs.d/init.el .emacs.d/init.el
+ ln -s .dotfiles/.i3/config .i3/config
)
}