4b76b7429a820e7eda8bed6c214d81a275be30b9

Author
Vadim <moshasmail@gmail.com>
Committer
ncanceill <nicolas.canceill@ens-cachan.org>
Date

Message

remove trash command from osx plugin

Diff

 1diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
 2index d0f9f009a21c1454dda1ea992ee86447b6aa806e..a6e3a83e6a738a7e4931afc5ffa62bc28d27d9ff 100644
 3--- a/plugins/osx/osx.plugin.zsh
 4+++ b/plugins/osx/osx.plugin.zsh
 5@@ -138,23 +138,6 @@ function man-preview() {
 6   man -t "$@" | open -f -a Preview
 7 }
 8 
 9-function trash() {
10-  local trash_dir="${HOME}/.Trash"
11-  local temp_ifs="$IFS"
12-  IFS=$'\n'
13-  for item in "$@"; do
14-    if [[ -e "$item" ]]; then
15-      item_name="$(basename $item)"
16-      if [[ -e "${trash_dir}/${item_name}" ]]; then
17-        mv -f "$item" "${trash_dir}/${item_name} $(date "+%H-%M-%S")"
18-      else
19-        mv -f "$item" "${trash_dir}/"
20-      fi
21-    fi
22-  done
23-  IFS=$temp_ifs
24-}
25-
26 function vncviewer() {
27   open vnc://$@
28 }