Add move-firefox-screenshots
script
This commit is contained in:
parent
68813f3af7
commit
a7a979e17e
|
@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), but adapt
|
||||||
|
|
||||||
Instead of grouping changes by tag, they are grouped by the date they are released.
|
Instead of grouping changes by tag, they are grouped by the date they are released.
|
||||||
|
|
||||||
|
## 12th June 2024
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Add `move-firefox-screenshots` - a script to move screenshots created in Firefox from my Downloads directory into my screenshots directory as there isn't a Firefox setting for this.
|
||||||
|
|
||||||
## 11th June 2024
|
## 11th June 2024
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
11
bin/move-firefox-screenshots
Executable file
11
bin/move-firefox-screenshots
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
original_directory="${HOME}/Downloads"
|
||||||
|
new_directory="${HOME}/Pictures/Screenshots"
|
||||||
|
|
||||||
|
find "${original_directory}" -mindepth 1 -maxdepth 1 -type f -name "Screenshot *" \
|
||||||
|
-exec mv {} "${new_directory}" \;
|
Loading…
Reference in a new issue