From c3d6a2f91cbbf0814311246e2f0517bb5e354e73 Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Tue, 26 Dec 2023 18:35:54 +0400 Subject: [PATCH] improve stuff --- setup.sh | 21 ++++++++++++++++++++- zsh/.profile | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index a92ed1a..5cd9e6d 100644 --- a/setup.sh +++ b/setup.sh @@ -21,6 +21,25 @@ else exit 1 fi +echo "This will move your current dotfiles to .bckp and create a symlink to the dotfiles in this directory" + + +shopt -s nocasematch +status=true +while $status; do + echo -n "Do you want to install the dotfiles? (y/n) " + read -r answer + if [[ "$answer" == "y" ]]; then + echo "Installing dotfiles" + status=false + elif [[ "$answer" == "n" ]]; then + echo "Aborting" + exit 1 + else + echo "Please answer with y or n" + fi +done + movePathAndLink nvim movePathAndLink hypr movePathAndLink waybar @@ -29,5 +48,5 @@ movePathAndLink kitty moveShell - +echo "Done" diff --git a/zsh/.profile b/zsh/.profile index d62b963..c1f8568 100644 --- a/zsh/.profile +++ b/zsh/.profile @@ -47,7 +47,7 @@ test -s ~/.alias && . ~/.alias || true alias vim="nvim" -export NEOCONFPATH="$HOME/Documents/init.lua" +export DOTFILE = "$HOME/Documents/dotfiles" alias overwatch='lutris lutris:rungame/overwatch-2' alias nuget='mono ~/nuget.exe'