Skip to content

Commit b7e1aed

Browse files
committed
use \mv
1 parent d57693c commit b7e1aed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cdhist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function cdpush {
4040
\cd "$@" || return $?
4141
echo "$PWD" >"$cdhf.tmp"
4242
grep -v "^$PWD$" "$cdhf" >>"$cdhf.tmp"
43-
[ -s "$cdhf.tmp" ] && mv "$cdhf.tmp" "$cdhf"
43+
[ -s "$cdhf.tmp" ] && \mv "$cdhf.tmp" "$cdhf"
4444
return 0
4545
}
4646

@@ -107,4 +107,4 @@ alias cd-='cd -'
107107
alias cd--=cdhist
108108
alias cd+='cdsub 1'
109109
alias cd++='cdsub 4'
110-
alias cdl=cdlocate
110+
alias cdl=cdlocate

0 commit comments

Comments
 (0)