From 2aadb14c7ab6db28467e0f43dee867833cd7b5f4 Mon Sep 17 00:00:00 2001 From: Cole van Krieken Date: Mon, 6 Oct 2014 16:39:18 -0700 Subject: [PATCH] Change trash function to follow osx naming convention --- plugins/osx/osx.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index a63f0ee05..82dcfd0ae 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -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