mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 17:53:49 +01:00
remove trash command from osx plugin
This commit is contained in:
parent
cf3fb873ec
commit
4b76b7429a
@ -138,23 +138,6 @@ function man-preview() {
|
|||||||
man -t "$@" | open -f -a 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() {
|
function vncviewer() {
|
||||||
open vnc://$@
|
open vnc://$@
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user