fix(shell): fshow command with delta

When running fshow we are piping it into less. This was interfering with delta
and loosing the formatting.

This removes the pipe and lets delta handle the paging in the default way with
all the highlighting.
This commit is contained in:
Ade Attwood 2021-11-21 16:40:53 +00:00
parent 74cffd7591
commit 075a167376

View file

@ -36,10 +36,10 @@ fshow() {
shas=$(sed '1,2d;s/^[^a-z0-9]*//;/^$/d' <<< "$out" | awk '{print $1}') shas=$(sed '1,2d;s/^[^a-z0-9]*//;/^$/d' <<< "$out" | awk '{print $1}')
[ -z "$shas" ] && continue [ -z "$shas" ] && continue
if [ "$k" = ctrl-d ]; then if [ "$k" = ctrl-d ]; then
git diff --color=always $shas | less -R git diff --color=always $shas
else else
for sha in $shas; do for sha in $shas; do
git show --color=always $sha | less -R git show --color=always $sha
done done
fi fi
done done