mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-18 10:47:31 -08:00
add script to clean home directory
This commit is contained in:
parent
3b1c85cec7
commit
7ddac3af49
16
home/bin/executable_linux-clean-home
Normal file
16
home/bin/executable_linux-clean-home
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
tmp_dir="$HOME/tmp/$(date +'%Y%m%dT%H%M%S')"
|
||||
|
||||
mkdir -p $tmp_dir
|
||||
ls -p ~ | grep -v '^\.' \
|
||||
| grep -v 'bin' \
|
||||
| grep -v 'Desktop' \
|
||||
| grep -v 'devel' \
|
||||
| grep -v 'documents' \
|
||||
| grep -v 'media' \
|
||||
| grep -v 'mnt' \
|
||||
| grep -v 'Screenshots' \
|
||||
| grep -v 'sync' \
|
||||
| grep -v 'tmp' \
|
||||
| xargs -I {} mv ~/{} $tmp_dir
|
Loading…
x
Reference in New Issue
Block a user