Add more colors to 'fglog' script
This commit is contained in:
parent
4dd4cde14f
commit
1e3cc7a54b
@ -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