mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
tests: Remove unused colordiff function
This commit is contained in:
parent
57d23c390b
commit
164a5ebe81
@ -125,21 +125,6 @@ function say -V suppress_color
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function colordiff -d 'Colored diff output for unified diffs'
|
|
||||||
diff $argv | while read -l line
|
|
||||||
switch $line
|
|
||||||
case '+*'
|
|
||||||
say green $line
|
|
||||||
case '-*'
|
|
||||||
say red $line
|
|
||||||
case '@*'
|
|
||||||
say cyan $line
|
|
||||||
case '*'
|
|
||||||
echo $line
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# lame timer
|
# lame timer
|
||||||
for program in {g,}date
|
for program in {g,}date
|
||||||
if command -q $program && $program --version 1>/dev/null 2>/dev/null
|
if command -q $program && $program --version 1>/dev/null 2>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user