Created
May 27, 2018 20:12
-
-
Save imyxh/480af3f9b58360f245b6efe63b2511fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh - | |
# Clear SSD's Blender temp folder. | |
# Could be done by following https://wiki.archlinux.org/index.php/Systemd/User#Temporary_files, | |
# but that wouldn't work with trash support. | |
trashdir="/home/imyxh/.local/share/Trash/files" | |
for i in /mnt/ssd/blender/temp/* | |
do | |
mkdir -p $trashdir/blender-temp; | |
mv "$i" $trashdir/blender-temp; | |
done | |
# Back up a list of explicitly installed packages. | |
pacman -Qent > /home/imyxh/scripts/pacman_native.txt | |
pacman -Qm > /home/imyxh/scripts/pacman_foreign.txt | |
pip freeze > /home/imyxh/scripts/pip_freeze.txt | |
gem list > /home/imyxh/scripts/gem_list.txt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment