From c09c143a29e1190e4abc5cd21ec87d34b1533ca9 Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 6 Nov 2023 16:20:00 +0100 Subject: [PATCH] clone config as bare repository --- larbs.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/larbs.sh b/larbs.sh index e3d6d68..9866284 100644 --- a/larbs.sh +++ b/larbs.sh @@ -193,11 +193,11 @@ manualinstall $aurhelper || error "Failed to install AUR helper." installationloop # Install the dotfiles in the user's home directory -putgitrepo "$dotfilesrepo" "/home/$name" "$repobranch" -rm -f "/home/$name/README.md" "/home/$name/LICENSE" "/home/$name/.gitignore" - -# Install vim plugins if not alread present. -[ ! -f "/home/$name/.config/nvim/autoload/plug.vim" ] && vimplugininstall +git clone --bare "$dotfilesrepo" "/home/$name/.dotfiles" +git --git-dir="/home/$name/.dotfiles/" --work-tree="/home/$name" checkout +git --git-dir="/home/$name/.dotfiles/" --work-tree="/home/$name" config --local status.showUntrackedFiles no +git --git-dir="/home/$name/.dotfiles/" --work-tree="/home/$name" pull +rm -f "/home/$name/README.md" "/home/$name/LICENSE" "/home/$name/.gitignore" "/home/$name/vim-example.png" # Make pipewire work systemctl --user --now enable pipewire pipewire-pulse