1
0
Fork 0

zsh screenshot function

This commit is contained in:
Jeremy Kaplan 2018-06-08 08:12:22 -07:00 committed by Jeremy Kaplan
commit bbad41eb0a

View file

@ -9,3 +9,12 @@ alias units='units --verbose'
alias trr='transmission-remote'
alias g='git'
alias rg='rg -S'
alias timestamp='date "+%Y-%m-%d_%H-%M-%S"'
screenshot() {
local ts="$(timestamp)"
local f="${HOME}/images/screenshots/${ts}.png"
import "$f"
echo "$f"
}