mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 00:53:42 -05:00
update fshow from junegunn/dotfiles with minor fix
@@ -331,10 +331,12 @@ fcoc() {
|
|||||||
fshow() {
|
fshow() {
|
||||||
git log --graph --color=always \
|
git log --graph --color=always \
|
||||||
--format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" |
|
--format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" |
|
||||||
fzf --ansi --no-sort --reverse --tiebreak=index --toggle-sort=\` \
|
fzf --ansi --no-sort --reverse --tiebreak=index --bind=ctrl-s:toggle-sort \
|
||||||
--bind "ctrl-m:execute:
|
--bind "ctrl-m:execute:
|
||||||
echo '{}' | grep -o '[a-f0-9]\{7\}' | head -1 |
|
(grep -o '[a-f0-9]\{7\}' | head -1 |
|
||||||
xargs -I % sh -c 'git show --color=always % | less -R'"
|
xargs -I % sh -c 'git show --color=always % | less -R') << 'FZF-EOF'
|
||||||
|
{}
|
||||||
|
FZF-EOF"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user