mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 20:59:26 +00:00
committed by
Sorin Ionescu
parent
5232191cbe
commit
fb9a20591f
@ -14,19 +14,19 @@ commands.
|
||||
To disable `ls` color, add the following line to *zshrc*; when coloring is
|
||||
disabled, type indicators (\*, /, =>, @, =, |, %) will be appended to entries.
|
||||
|
||||
zstyle ':omz:module:utility:ls' color 'no'
|
||||
zstyle ':prezto:module:utility:ls' color 'no'
|
||||
|
||||
To disable `diff` highlighting, add the following line to *zshrc*:
|
||||
|
||||
zstyle ':omz:module:utility:diff' color 'no'
|
||||
zstyle ':prezto:module:utility:diff' color 'no'
|
||||
|
||||
To disable `wdiff` highlighting, add the following line to *zshrc*:
|
||||
|
||||
zstyle ':omz:module:utility:wdiff' color 'no'
|
||||
zstyle ':prezto:module:utility:wdiff' color 'no'
|
||||
|
||||
To disable `make` highlighting, add the following line to *zshrc*:
|
||||
|
||||
zstyle ':omz:module:utility:make' color 'no'
|
||||
zstyle ':prezto:module:utility:make' color 'no'
|
||||
|
||||
Aliases
|
||||
-------
|
||||
@ -154,5 +154,5 @@ Authors
|
||||
- [Suraj N. Kurapati](https://github.com/sunaku)
|
||||
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
||||
|
||||
[1]: https://github.com/sorin-ionescu/oh-my-zsh/issues
|
||||
[1]: https://github.com/sorin-ionescu/prezto/issues
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
function diff {
|
||||
if zstyle -t ':omz:module:utility:diff' color; then
|
||||
if zstyle -t ':prezto:module:utility:diff' color; then
|
||||
if (( $+commands[colordiff] )); then
|
||||
command diff --unified "$@" | colordiff --difftype diffu
|
||||
elif (( $+commands[git] )); then
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
function make {
|
||||
if zstyle -t ':omz:module:utility:make' color; then
|
||||
if zstyle -t ':prezto:module:utility:make' color; then
|
||||
if (( $+commands[colormake] )); then
|
||||
colormake "$@"
|
||||
else
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
function wdiff {
|
||||
if zstyle -t ':omz:module:utility:wdiff' color; then
|
||||
if zstyle -t ':prezto:module:utility:wdiff' color; then
|
||||
if (( $+commands[wdiff] )); then
|
||||
command wdiff \
|
||||
--avoid-wraps \
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
|
||||
# Load dependencies.
|
||||
omodload 'spectrum'
|
||||
pmodload 'spectrum'
|
||||
|
||||
# Correct commands.
|
||||
setopt CORRECT
|
||||
@ -63,7 +63,7 @@ if is-callable 'dircolors'; then
|
||||
# GNU Core Utilities
|
||||
alias ls='ls --group-directories-first'
|
||||
|
||||
if zstyle -t ':omz:module:utility:ls' color; then
|
||||
if zstyle -t ':prezto:module:utility:ls' color; then
|
||||
if [[ -s "$HOME/.dir_colors" ]]; then
|
||||
eval "$(dircolors "$HOME/.dir_colors")"
|
||||
else
|
||||
@ -75,7 +75,7 @@ if is-callable 'dircolors'; then
|
||||
fi
|
||||
else
|
||||
# BSD Core Utilities
|
||||
if zstyle -t ':omz:module:utility:ls' color; then
|
||||
if zstyle -t ':prezto:module:utility:ls' color; then
|
||||
export LSCOLORS="exfxcxdxbxegedabagacad"
|
||||
alias ls="ls -G"
|
||||
else
|
||||
|
Reference in New Issue
Block a user