Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
4b76b742
Commit
4b76b742
authored
Dec 28, 2014
by
Vadim
Committed by
ncanceill
Jun 12, 2015
Browse files
remove trash command from osx plugin
parent
cf3fb873
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/osx/osx.plugin.zsh
View file @
4b76b742
...
...
@@ -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://
$@
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment