return 0 instead of 1

returning 1 would make :module:loaded set to no, undefining functions, which was
not intended.
not using the aliases is not an error, just an option, while other features of
the module were loaded normally
This commit is contained in:
Zeh Rizzatti 2012-12-12 19:15:09 -03:00
parent b3f1d9ff2c
commit 8d7383e5dd
17 changed files with 17 additions and 17 deletions

View file

@ -28,7 +28,7 @@ unsetopt CLOBBER # Do not overwrite existing files with > and >>.
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all directory; then
return 1
return 0
fi
alias d='dirs -v'

View file

@ -18,7 +18,7 @@ fi
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all dpkg; then
return 1
return 0
fi
# Cleans the cache.

View file

@ -51,7 +51,7 @@ function fasd_cd {
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all fasd; then
return 1
return 0
fi
# Changes the current working directory interactively.

View file

@ -28,7 +28,7 @@ zstyle -s ':prezto:module:git:status:ignore' submodules '_git_status_ignore_subm
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all git; then
return 1
return 0
fi
# Git

View file

@ -37,7 +37,7 @@ setopt HIST_BEEP # Beep when accessing non-existent history.
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all history; then
return 1
return 0
fi
# Lists the ten most used commands.

View file

@ -39,7 +39,7 @@ path=(
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all macports; then
return 1
return 0
fi
alias portc='sudo port clean --all installed'

View file

@ -33,7 +33,7 @@ function rm-osx-cruft {
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all osx; then
return 1
return 0
fi
# Change directory to the current Finder directory.

View file

@ -20,7 +20,7 @@ fi
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all pacman; then
return 1
return 0
fi
# Get the Pacman frontend.

View file

@ -45,7 +45,7 @@ fi
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all perl; then
return 1
return 0
fi
# General

View file

@ -44,7 +44,7 @@ fi
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all python; then
return 1
return 0
fi
alias py='python'

View file

@ -18,7 +18,7 @@ fi
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all rails; then
return 1
return 0
fi
alias ror='rails'

View file

@ -16,7 +16,7 @@ fi
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all rsync; then
return 1
return 0
fi
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system'

View file

@ -42,7 +42,7 @@ fi
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all ruby; then
return 1
return 0
fi
# General

View file

@ -34,7 +34,7 @@ fi
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all screen; then
return 1
return 0
fi
alias scr='screen'

View file

@ -42,7 +42,7 @@ fi
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all tmux; then
return 1
return 0
fi
alias tmuxa='tmux attach-session'

View file

@ -58,7 +58,7 @@ function psu {
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all utility; then
return 1
return 0
fi
# Disable correction.

View file

@ -17,7 +17,7 @@ fi
# Return if conditions are unsatistied
if ! zstyle -t ':prezto:alias' pmodule all yum; then
return 1
return 0
fi
alias yumc='sudo yum clean all' # Cleans the cache.