1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 18:38:00 +00:00

Rename the alias module zstyle

This commit is contained in:
Sorin Ionescu 2012-05-20 18:34:43 -04:00
parent c24273e4d2
commit 8a784c7ec7

View File

@ -15,7 +15,7 @@ if is-callable 'dircolors'; then
# GNU core utilities.
alias ls='ls --group-directories-first'
if zstyle -t ':omz:alias:ls' color; then
if zstyle -t ':omz:module:alias:ls' color; then
if [[ -s "$HOME/.dir_colors" ]]; then
eval "$(dircolors "$HOME/.dir_colors")"
else
@ -27,7 +27,7 @@ if is-callable 'dircolors'; then
fi
else
# BSD core utilities.
if zstyle -t ':omz:alias:ls' color; then
if zstyle -t ':omz:module:alias:ls' color; then
export LSCOLORS="exfxcxdxbxegedabagacad"
alias ls="ls -G"
else
@ -102,8 +102,8 @@ else
alias topc='top -o cpu'
fi
# Diff/Make
if zstyle -t ':omz:alias:diff' color; then
# Diff
if zstyle -t ':omz:module:alias:diff' color; then
function diff {
if (( $+commands[colordiff] )); then
"$commands[diff]" --unified "$@" | colordiff --difftype diffu
@ -130,6 +130,7 @@ if zstyle -t ':omz:alias:diff' color; then
print "zsh: command not found: $0" >&2
fi
}
fi
if (( $+commands[colormake] )); then
alias make='colormake'