mirror of
https://github.com/Ascyii/dotfiles.git
synced 2026-01-01 06:54:24 -05:00
Removed yazi packages and added some scripts
This commit is contained in:
16
resolve.sh
Executable file
16
resolve.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
pkg="$1"
|
||||
|
||||
stow --dotfiles --no "$pkg" 2>&1 |
|
||||
grep 'cannot stow' |
|
||||
sed -E 's/.*existing target ([^ ]+).*/\1/' |
|
||||
while read -r f; do
|
||||
echo "Removing $HOME/$f with force"
|
||||
rm -rf -- "$HOME/$f"
|
||||
done
|
||||
|
||||
stow --dotfiles "$pkg"
|
||||
echo "Stowed $pkg"
|
||||
Reference in New Issue
Block a user