aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2023-02-18 11:03:40 +0100
committerMartin Polden <mpolden@mpolden.no>2023-02-18 11:04:47 +0100
commitca2af7e78f6c08b27cc6259627e6359f61095437 (patch)
tree6c5c7e73b9e8fa64cf00ef3a8c5ff68fea03e598
parent1277b9104d4c0a8e8cdd921f114a0d8978c35eb7 (diff)
git: tweak fzf alias
-rw-r--r--gitconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitconfig b/gitconfig
index b12a42f..83ca483 100644
--- a/gitconfig
+++ b/gitconfig
@@ -26,7 +26,7 @@
ui = auto
[alias]
lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
- fzf = "!git lg --color=always | fzf --ansi --multi --reverse --delimiter=' - ' --nth=2.. --preview='echo {} | grep -Eo \"[a-f0-9]{7,}\" | xargs -r git show --color=always' | grep -Eo '[a-f0-9]{7,}'"
+ fzf = "!git lg --no-graph --color=always | fzf --ansi --multi --reverse --no-sort --delimiter=' - ' --nth=2.. --preview='git show --color=always {1}' | cut -f 1 -d ' '"
s = status --short --branch
co = checkout
b = branch