aboutsummaryrefslogtreecommitdiffstats
path: root/.zsh.functions
diff options
context:
space:
mode:
Diffstat (limited to '.zsh.functions')
-rw-r--r--.zsh.functions/02_utility.zsh29
1 files changed, 0 insertions, 29 deletions
diff --git a/.zsh.functions/02_utility.zsh b/.zsh.functions/02_utility.zsh
index c08ce10..05b77bc 100644
--- a/.zsh.functions/02_utility.zsh
+++ b/.zsh.functions/02_utility.zsh
@@ -33,17 +33,6 @@ function psu {
ps -U "${1:-$LOGNAME}" -o 'pid,%cpu,%mem,command' "${(@)argv[2,-1]}"
}
-# Highlights diff output.
-function diff {
- if (( $+commands[colordiff] )); then
- command diff --unified "$@" | colordiff --difftype diffu
- elif (( $+commands[git] )); then
- git --no-pager diff --color=auto --no-ext-diff --no-index "$@"
- else
- command diff --unified "$@"
- fi
-}
-
# Highlights make output.
function make {
if (( $+commands[colormake] )); then
@@ -53,24 +42,6 @@ function make {
fi
}
-# Highlights wdiff output.
-function wdiff {
- if (( $+commands[wdiff] )); then
- command wdiff \
- --avoid-wraps \
- --start-delete="$(print -n $FG[red])" \
- --end-delete="$(print -n $FG[none])" \
- --start-insert="$(print -n $FG[green])" \
- --end-insert="$(print -n $FG[none])" \
- "$@" \
- | sed 's/^\(@@\( [+-][[:digit:]]*,[[:digit:]]*\)\{2\} @@\)$/;5;6m\10m/g'
- elif (( $+commands[git] )); then
- git --no-pager diff --color=auto --no-ext-diff --no-index --color-words "$@"
- else
- command wdiff "$@"
- fi
-}
-
# Lists the contents of archives.
function lsarchive {
while (( $# > 0 )); do