Skip to content

Commit

Permalink
Prevent rg line numbers if no xsv available
Browse files Browse the repository at this point in the history
  • Loading branch information
Monty committed Feb 25, 2021
1 parent d371661 commit d249e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/tsvPrint.function
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ EOF
if checkForExecutable -q xsv; then
xsv table -d "\t" "$tsvFile" | rg --color always -f "$searchFile"
else
rg --color always -f "$searchFile" "$tsvFile"
rg -N --color always -f "$searchFile" "$tsvFile"
fi
rm -f "$searchFile"
fi
Expand Down

0 comments on commit d249e28

Please sign in to comment.