summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorVadim <moshasmail@gmail.com>2014-12-28 01:54:18 +0200
committerncanceill <nicolas.canceill@ens-cachan.org>2015-06-12 00:21:44 +0200
commit4b76b7429a820e7eda8bed6c214d81a275be30b9 (patch)
tree8e7b9682d452f47028e5eab3f1e995b246baa044 /plugins
parentcf3fb873ec0cc0ec428e9c05dcac998d3b3f956c (diff)
downloadzsh-4b76b7429a820e7eda8bed6c214d81a275be30b9.tar.gz
zsh-4b76b7429a820e7eda8bed6c214d81a275be30b9.tar.bz2
zsh-4b76b7429a820e7eda8bed6c214d81a275be30b9.zip
remove trash command from osx plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/osx/osx.plugin.zsh17
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
index d0f9f009a..a6e3a83e6 100644
--- a/plugins/osx/osx.plugin.zsh
+++ b/plugins/osx/osx.plugin.zsh
@@ -138,23 +138,6 @@ function man-preview() {
man -t "$@" | open -f -a Preview
}
-function trash() {
- local trash_dir="${HOME}/.Trash"
- local temp_ifs="$IFS"
- IFS=$'\n'
- for item in "$@"; do
- 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")"
- else
- mv -f "$item" "${trash_dir}/"
- fi
- fi
- done
- IFS=$temp_ifs
-}
-
function vncviewer() {
open vnc://$@
}