From 8a784c7ec7c63c78b0f1d9cacd2c10949dfb9574 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 20 May 2012 18:34:43 -0400 Subject: [PATCH] Rename the alias module zstyle --- modules/alias/init.zsh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/alias/init.zsh b/modules/alias/init.zsh index 9f06cace..a150c491 100644 --- a/modules/alias/init.zsh +++ b/modules/alias/init.zsh @@ -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'