summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorstuebinm2023-04-10 19:24:12 +0200
committerstuebinm2023-04-10 19:24:12 +0200
commit2ba81320e247fe6c3acea0761ce5358545c5c16c (patch)
tree9c05c842fbdc9f5d4433985eaf3c5374a9a85f6f /home
parentf70d40cffc98be1ee8c6ca9590c6aa0a7fdc9490 (diff)
home: git search with nicer shell output
Diffstat (limited to 'home')
-rw-r--r--home/home-minimal.nix2
1 files changed, 1 insertions, 1 deletions
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;