mirror of
https://github.com/tiyn/larbs.git
synced 2025-04-01 15:07:45 +02:00
clone config as bare repository
This commit is contained in:
parent
426c474f1d
commit
c09c143a29
10
larbs.sh
10
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user