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:
parent
74cffd7591
commit
075a167376
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue