mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Merge 2aadb14c7a into 9eaf51107f
This commit is contained in:
commit
a64524971e
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ function trash() {
|
||||||
if [[ -e "$item" ]]; then
|
if [[ -e "$item" ]]; then
|
||||||
item_name="$(basename $item)"
|
item_name="$(basename $item)"
|
||||||
if [[ -e "${trash_dir}/${item_name}" ]]; then
|
if [[ -e "${trash_dir}/${item_name}" ]]; then
|
||||||
mv -f "$item" "${trash_dir}/${item_name} $(date "+%H-%M-%S")"
|
mv -f "$item" "${trash_dir}/${item_name:r} $(date "+%l.%M.%S %p" | sed 's/^ *//')${item_name#${item_name:r}}"
|
||||||
else
|
else
|
||||||
mv -f "$item" "${trash_dir}/"
|
mv -f "$item" "${trash_dir}/"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue