1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2025-02-05 07:43:22 -08:00

minor fixes

This commit is contained in:
Connor Olding 2020-12-31 09:09:41 +01:00
parent d35c492850
commit 443c9a207e

View file

@ -163,7 +163,7 @@ trash() {
}
explore() {
explorer "$(cygpath -w "$1")"
explorer "$(cygpath -w "${1:-.}")"
}
pegg() {
@ -182,8 +182,8 @@ baks() { # backup, timestamped
local now="$(date -u '+%y-%m-%d_%H-%M-%S')"
local bak="$fp.$now.bak"
if [ -s "$bak" ]; then
echo "how in the hell? $bak already exists" >&2
return
printf "how in the hell? %s already exists\n" "$bak" >&2
return 1
fi
cp -p "$fp" "$bak"
}