mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
This commit is contained in:
commit
66b6bf5903
4 changed files with 22 additions and 3 deletions
4
plugins/atom/atom.plugin.zsh
Normal file
4
plugins/atom/atom.plugin.zsh
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# Your guess is as good as mine. Let's just assume that we will need this...
|
||||||
|
# - For more info visit... http://atom.io/
|
||||||
|
#
|
||||||
|
|
@ -1,3 +1,14 @@
|
||||||
|
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() {
|
function _cabal_commands() {
|
||||||
local ret=1 state
|
local ret=1 state
|
||||||
_arguments ':subcommand:->subcommand' && ret=0
|
_arguments ':subcommand:->subcommand' && ret=0
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
function gi() { curl http://gitignore.io/api/$@ ;}
|
function gi() { curl http://www.gitignore.io/api/$@ ;}
|
||||||
|
|
||||||
_gitignireio_get_command_list() {
|
_gitignireio_get_command_list() {
|
||||||
curl -s http://gitignore.io/api/list | tr "," "\n"
|
curl -s http://www.gitignore.io/api/list | tr "," "\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
_gitignireio () {
|
_gitignireio () {
|
||||||
|
|
@ -9,4 +9,4 @@ _gitignireio () {
|
||||||
compadd -S '' `_gitignireio_get_command_list`
|
compadd -S '' `_gitignireio_get_command_list`
|
||||||
}
|
}
|
||||||
|
|
||||||
compdef _gitignireio gi
|
compdef _gitignireio gi
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# 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 rake="noglob rake" # allows square brackts for rake task invocation
|
||||||
alias brake='noglob bundle exec rake' # execute the bundled rake gem
|
alias brake='noglob bundle exec rake' # execute the bundled rake gem
|
||||||
alias srake='noglob sudo rake' # noglob must come before sudo
|
alias srake='noglob sudo rake' # noglob must come before sudo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue