dotfiles/bin/bin/upload-screenshot

9 lines
115 B
Bash
Executable File

#!/bin/bash
rename 's/ /-/g' ~/Pictures/*.png
latest=$(ls -Art ~/Pictures | tail -n 1)
pb "~/Pictures/$latest"