mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-27 03:05:39 +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
|
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