1
0
Fork 0

bin: screenshot

This commit is contained in:
Jeremy Kaplan 2022-01-14 20:37:00 -08:00
commit 0a1e5b5ec4
2 changed files with 9 additions and 8 deletions

View file

@ -14,14 +14,6 @@ alias rg='rg -S'
alias timestamp='date "+%Y-%m-%d_%H-%M-%S"'
alias humantime='date "+%Y-%m-%d %H:%M %z"'
screenshot() {
local ts="$(timestamp)"
local f="${HOME}/images/screenshots/${ts}.png"
import "$@" "$f"
echo "$f" >&2
echo "$f"
}
docker-ip() {
docker inspect "$1" --format='{{.NetworkSettings.Networks.bridge.IPAddress}}'
}