mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Change trash function to follow osx naming convention
This commit is contained in:
parent
96e4e5dd03
commit
2aadb14c7a
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ function trash() {
|
|||
if [[ -e "$item" ]]; then
|
||||
item_name="$(basename $item)"
|
||||
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
|
||||
mv -f "$item" "${trash_dir}/"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue