diff options
author | Humphrey Lin <[email protected]> | 2020-12-01 18:10:09 +0000 |
---|---|---|
committer | Humphrey Lin <[email protected]> | 2020-12-01 18:10:09 +0000 |
commit | 514eab77de4da4b9ffb4c411d81729d04e55588f (patch) | |
tree | e601f5f0d4737c7b2b8c98fde6c5020babee2238 /install.sh | |
parent | 3e322ad69f8a2e6dad7f41df0d426258a15fa999 (diff) | |
download | dotfiles-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.sh | 24 |
1 files changed, 10 insertions, 14 deletions
@@ -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 ) } |