1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-26 09:07:12 -07:00
rc/sh/baknow

9 lines
154 B
Bash

#!/usr/bin/env sh
# YES_ZSH
baknow() { ### @-
cp -ip "${1:?missing file argument}" "$1.$(now "$1").bak"
}
[ "${SOURCING:-0}" -gt 0 ] || baknow "$@"