Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
6b3c9537
Commit
6b3c9537
authored
Feb 26, 2014
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
parents
6cc24081
74ad998a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
cabal.plugin.zsh
plugins/cabal/cabal.plugin.zsh
+11
-0
gitignore.plugin.zsh
plugins/gitignore/gitignore.plugin.zsh
+3
-3
rake.plugin.zsh
plugins/rake/rake.plugin.zsh
+4
-0
No files found.
plugins/cabal/cabal.plugin.zsh
View file @
6b3c9537
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
...
...
plugins/gitignore/gitignore.plugin.zsh
View file @
6b3c9537
function
gi
()
{
curl http://gitignore.io/api/
$@
;
}
function
gi
()
{
curl http://
www.
gitignore.io/api/
$@
;
}
_gitignireio_get_command_list
()
{
curl
-s
http://gitignore.io/api/list |
tr
","
"
\n
"
curl
-s
http://
www.
gitignore.io/api/list |
tr
","
"
\n
"
}
_gitignireio
()
{
...
...
@@ -9,4 +9,4 @@ _gitignireio () {
compadd
-S
''
`
_gitignireio_get_command_list
`
}
compdef _gitignireio gi
\ No newline at end of file
compdef _gitignireio gi
plugins/rake/rake.plugin.zsh
View file @
6b3c9537
# Thank you Jim for everything you contributed to the Ruby and open source community
# over the years. We will miss you dearly.
alias
jimweirich
=
"rake"
alias
rake
=
"noglob rake"
# allows square brackts for rake task invocation
alias
brake
=
'noglob bundle exec rake'
# execute the bundled rake gem
alias
srake
=
'noglob sudo rake'
# noglob must come before sudo
...
...
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