Add more colors to 'fglog' script
This commit is contained in:
parent
4dd4cde14f
commit
1e3cc7a54b
@ -6,5 +6,5 @@ unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx
|
|||||||
|
|
||||||
icon="$(cat "/tmp/imapsyncicon_$USER" 2>/dev/null)"
|
icon="$(cat "/tmp/imapsyncicon_$USER" 2>/dev/null)"
|
||||||
|
|
||||||
[ "$unread" -gt "0" ] && echo " $unread " || echo ""
|
[ "$unread" -gt "0" ] && echo " $unread" || echo ""
|
||||||
echo "$icon"
|
echo "$icon"
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Fuzzy Git commits browser.
|
# Fuzzy Git commit browser.
|
||||||
|
|
||||||
git log --no-decorate --format=short | awk '/^commit|^ /' |
|
show_diff="git log --color=always -n 1 {1}; seq -s_ 150|tr -d '[:digit:]' && \
|
||||||
sed 's/ //g; s/commit //g' | paste -d " " - - | fzf --preview \
|
git diff --color=always {1}~ {1}"
|
||||||
'git log -n 1 {1}; printf "\n" && git diff --color=always {1}~ {1}'
|
|
||||||
|
git log --color=always --format="%C(auto)%h %s" | fzf --ansi \
|
||||||
|
--preview="$show_diff" --preview-window=right:55%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user