Bash: cleandesktop function.
This commit is contained in:
parent
241a736475
commit
2b3294fcb6
@ -54,6 +54,10 @@ Extract archives of various types.
|
|||||||
|
|
||||||
Empty the Trash on all mounted volumes and the main HDD. Also, clear Apple’s System Logs to improve shell startup speed.
|
Empty the Trash on all mounted volumes and the main HDD. Also, clear Apple’s System Logs to improve shell startup speed.
|
||||||
|
|
||||||
|
### cleandesktop
|
||||||
|
|
||||||
|
Remove screenshots from desktop.
|
||||||
|
|
||||||
### show / hide
|
### show / hide
|
||||||
|
|
||||||
Show/hide hidden files in Finder.
|
Show/hide hidden files in Finder.
|
||||||
|
@ -49,6 +49,15 @@ function codepoint() {
|
|||||||
echo # newline
|
echo # newline
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Remove screenshots from desktop
|
||||||
|
function cleandesktop() {
|
||||||
|
header "Cleaning desktop..."
|
||||||
|
for file in ~/Desktop/Screen\ Shot*.png; do
|
||||||
|
unlink "$file"
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
# Extract archives of various types
|
# Extract archives of various types
|
||||||
function extract() {
|
function extract() {
|
||||||
if [ -f $1 ] ; then
|
if [ -f $1 ] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user