From 514eab77de4da4b9ffb4c411d81729d04e55588f Mon Sep 17 00:00:00 2001 From: Humphrey Lin Date: Tue, 1 Dec 2020 18:10:09 +0000 Subject: Add config of i3wm and modify the EDITOR in .zshrc --- install.sh | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'install.sh') 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 ) } -- cgit v1.2.3