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
500cbbc7
Commit
500cbbc7
authored
Feb 19, 2014
by
Robby Russell
Browse files
Merge pull request #2541 from puffnfresh/cabal-sandboxes-info
Add cabal_sandbox_info function
parents
861290e4
358b6ffc
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/cabal/cabal.plugin.zsh
View file @
500cbbc7
function
cabal_sandbox_info
()
{
cabal_files
=(
*
.cabal
(
N
))
if
[
$#cabal_files
-gt
0
]
;
then
if
[
-f
cabal.sandbox.config
]
;
then
echo
"%{
$fg
[green]%}sandboxed%{
$reset_color
%}"
else
echo
"%{
$fg
[red]%}not sandboxed%{
$reset_color
%}"
fi
fi
}
function
_cabal_commands
()
{
local
ret
=
1 state
_arguments
':subcommand:->subcommand'
&&
ret
=
0
...
...
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