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
Oh My Zsh
Commits
8309b0a1
Commit
8309b0a1
authored
Feb 23, 2014
by
Eduardo San Martin Morote
Browse files
Verification of convert inside the function
Depending on when the path is declared this solution would work in any case
parent
44b23ae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/catimg/catimg.plugin.zsh
View file @
8309b0a1
...
...
@@ -7,10 +7,11 @@
# Github: https://github.com/posva/catimg #
################################################################################
if
[[
-x
`
which convert
`
]]
;
then
function
catimg
()
{
function
catimg
()
{
if
[[
-x
`
which convert
`
]]
;
then
zsh
$ZSH
/plugins/catimg/catimg.sh
$@
}
else
echo
"catimg need convert (ImageMagick) to work)"
fi
else
echo
"catimg need convert (ImageMagick) to work)"
fi
}
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