mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-06-14 08:41:43 +00:00
Moved hub into the git plugin.
This commit is contained in:
13
plugins/osx/functions/trash
Normal file
13
plugins/osx/functions/trash
Normal file
@ -0,0 +1,13 @@
|
||||
local trash_dir="${HOME}/.Trash"
|
||||
local trash_item
|
||||
local item
|
||||
for item in "${@}"; do
|
||||
if [[ -e "${item}" ]] || [[ -L "${item}" ]]; then
|
||||
trash_item="${trash_dir}/${item:t}"
|
||||
if [[ -e "${trash_item}" ]] || [[ -L "${trash_item}" ]]; then
|
||||
trash_item="${trash_item} $(date "+%H-%M-%S")"
|
||||
fi
|
||||
mv -f "${item}" "${trash_item}"
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user