From 2ba81320e247fe6c3acea0761ce5358545c5c16c Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 10 Apr 2023 19:24:12 +0200 Subject: home: git search with nicer shell output --- home/home-minimal.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'home') diff --git a/home/home-minimal.nix b/home/home-minimal.nix index 5a994f5..51bb8d0 100644 --- a/home/home-minimal.nix +++ b/home/home-minimal.nix @@ -88,7 +88,7 @@ extraConfig = { log.showSignature = true; init.defaultBranch = "main"; - alias.search = "!git log --format='tformat:%h %cs %s' --no-show-signature | fzf --multi --preview 'git show {+1}|bat -p -lpatch --color=always'"; + alias.search = "!git log --format='tformat:%h %cs %s' --no-show-signature | fzf --multi --preview 'git show {+1}|bat -p -lpatch --color=always' | cut -f1 -d\" \" | wl-copy -n && wl-paste"; }; # diff-so-fancy.enable = true; -- cgit v1.2.3