Move clean from function to bin

This commit is contained in:
Phantop 2020-08-03 23:24:39 -04:00
parent 3ca41056f3
commit 988b934ca8
2 changed files with 17 additions and 20 deletions

View File

@ -1,20 +0,0 @@
# Defined in /tmp/fish.WWumAI/clean.fish @ line 2
function clean
up
fc-cache -f -v
s sync
j -c
se clean -y
se dc -y
se rmo -y
se rdb -y
s journalctl --vacuum-size=1K
bleachbit -c (bleachbit -l|grep -Ev 'system.free_disk_space|transmission|system.memory|firefox')
s bleachbit -c (bleachbit -l|grep -Ev 'system.free_disk_space|transmission|system.memory|firefox')
rm -r ~/.cache/*
rm -r ~/.nv/*
rm -r ~/.local/share/nvim/swap/
rm (ff . $D -e log)
s solbuild delete-cache
s sync
end

17
.local/bin/clean Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
sudo eopkg up --y
fc-cache -f -v
sudo sync
fish -c "j -c"
sudo eopkg clean -y
sudo eopkg dc -y
sudo eopkg rmo -y
sudo eopkg rdb -y
sudo journalctl --vacuum-size=1K
bleachbit -c `bleachbit -l|grep -Ev 'system.free_disk_space|transmission|system.memory|firefox'`
sudo bleachbit -c `bleachbit -l|grep -Ev 'system.free_disk_space|transmission|system.memory|firefox'`
rm -r ~/.cache/*
rm -r ~/.local/share/nvim/swap/
rm `fd -H -L -i . $D -e log`
sudo solbuild delete-cache
sudo sync