Updated config, added README and clean script

This commit is contained in:
Alexey 2025-01-21 14:32:14 +03:00
commit 0715f8b16b
6 changed files with 62 additions and 12 deletions

24
clean.fish Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/fish
# This script removes all symlinks in ~/.config that were added by setup.fish.
set ignored ls (string split ' ' (cat ignored))
set lscommand (string join ' --hide=' $ignored)
set directories (eval $lscommand)
for directory in $directories
set confdir ~/.config/$directory
if ! test -d $confdir
echo Directory $confdir does not exist. Skipping...
continue
end
set content (ls $confdir)
for file in $content
if test -L $confdir/$file
rm $confdir/$file
echo Removed $confdir/$file.
else
echo $confdir/$file is not symlink. Skipping...
end
end
end