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:
parent
b3f1d9ff2c
commit
8d7383e5dd
17 changed files with 17 additions and 17 deletions
|
@ -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'
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue