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
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all directory; then
|
if ! zstyle -t ':prezto:alias' pmodule all directory; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias d='dirs -v'
|
alias d='dirs -v'
|
||||||
|
|
|
@ -18,7 +18,7 @@ fi
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all dpkg; then
|
if ! zstyle -t ':prezto:alias' pmodule all dpkg; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleans the cache.
|
# Cleans the cache.
|
||||||
|
|
|
@ -51,7 +51,7 @@ function fasd_cd {
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all fasd; then
|
if ! zstyle -t ':prezto:alias' pmodule all fasd; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Changes the current working directory interactively.
|
# 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
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all git; then
|
if ! zstyle -t ':prezto:alias' pmodule all git; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
|
|
|
@ -37,7 +37,7 @@ setopt HIST_BEEP # Beep when accessing non-existent history.
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all history; then
|
if ! zstyle -t ':prezto:alias' pmodule all history; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Lists the ten most used commands.
|
# Lists the ten most used commands.
|
||||||
|
|
|
@ -39,7 +39,7 @@ path=(
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all macports; then
|
if ! zstyle -t ':prezto:alias' pmodule all macports; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias portc='sudo port clean --all installed'
|
alias portc='sudo port clean --all installed'
|
||||||
|
|
|
@ -33,7 +33,7 @@ function rm-osx-cruft {
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all osx; then
|
if ! zstyle -t ':prezto:alias' pmodule all osx; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change directory to the current Finder directory.
|
# Change directory to the current Finder directory.
|
||||||
|
|
|
@ -20,7 +20,7 @@ fi
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all pacman; then
|
if ! zstyle -t ':prezto:alias' pmodule all pacman; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the Pacman frontend.
|
# Get the Pacman frontend.
|
||||||
|
|
|
@ -45,7 +45,7 @@ fi
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all perl; then
|
if ! zstyle -t ':prezto:alias' pmodule all perl; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# General
|
# General
|
||||||
|
|
|
@ -44,7 +44,7 @@ fi
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all python; then
|
if ! zstyle -t ':prezto:alias' pmodule all python; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias py='python'
|
alias py='python'
|
||||||
|
|
|
@ -18,7 +18,7 @@ fi
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all rails; then
|
if ! zstyle -t ':prezto:alias' pmodule all rails; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias ror='rails'
|
alias ror='rails'
|
||||||
|
|
|
@ -16,7 +16,7 @@ fi
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all rsync; then
|
if ! zstyle -t ':prezto:alias' pmodule all rsync; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system'
|
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system'
|
||||||
|
|
|
@ -42,7 +42,7 @@ fi
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all ruby; then
|
if ! zstyle -t ':prezto:alias' pmodule all ruby; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# General
|
# General
|
||||||
|
|
|
@ -34,7 +34,7 @@ fi
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all screen; then
|
if ! zstyle -t ':prezto:alias' pmodule all screen; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias scr='screen'
|
alias scr='screen'
|
||||||
|
|
|
@ -42,7 +42,7 @@ fi
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all tmux; then
|
if ! zstyle -t ':prezto:alias' pmodule all tmux; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias tmuxa='tmux attach-session'
|
alias tmuxa='tmux attach-session'
|
||||||
|
|
|
@ -58,7 +58,7 @@ function psu {
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all utility; then
|
if ! zstyle -t ':prezto:alias' pmodule all utility; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Disable correction.
|
# Disable correction.
|
||||||
|
|
|
@ -17,7 +17,7 @@ fi
|
||||||
|
|
||||||
# Return if conditions are unsatistied
|
# Return if conditions are unsatistied
|
||||||
if ! zstyle -t ':prezto:alias' pmodule all yum; then
|
if ! zstyle -t ':prezto:alias' pmodule all yum; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias yumc='sudo yum clean all' # Cleans the cache.
|
alias yumc='sudo yum clean all' # Cleans the cache.
|
||||||
|
|
Loading…
Add table
Reference in a new issue