mirror of
https://github.com/notwa/rc
synced 2025-02-05 15:43:22 -08:00
minor fixes
This commit is contained in:
parent
d35c492850
commit
443c9a207e
1 changed files with 3 additions and 3 deletions
|
@ -163,7 +163,7 @@ trash() {
|
||||||
}
|
}
|
||||||
|
|
||||||
explore() {
|
explore() {
|
||||||
explorer "$(cygpath -w "$1")"
|
explorer "$(cygpath -w "${1:-.}")"
|
||||||
}
|
}
|
||||||
|
|
||||||
pegg() {
|
pegg() {
|
||||||
|
@ -182,8 +182,8 @@ baks() { # backup, timestamped
|
||||||
local now="$(date -u '+%y-%m-%d_%H-%M-%S')"
|
local now="$(date -u '+%y-%m-%d_%H-%M-%S')"
|
||||||
local bak="$fp.$now.bak"
|
local bak="$fp.$now.bak"
|
||||||
if [ -s "$bak" ]; then
|
if [ -s "$bak" ]; then
|
||||||
echo "how in the hell? $bak already exists" >&2
|
printf "how in the hell? %s already exists\n" "$bak" >&2
|
||||||
return
|
return 1
|
||||||
fi
|
fi
|
||||||
cp -p "$fp" "$bak"
|
cp -p "$fp" "$bak"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue