From 52f584839aaf687d38d2723fba9dece39c574503 Mon Sep 17 00:00:00 2001 From: Nathan Knowler Date: Tue, 11 May 2021 16:24:49 -0500 Subject: [PATCH] [git+bin] add track command and git alias --- .config/git/config | 1 + .local/bin/track | 3 +++ 2 files changed, 4 insertions(+) create mode 100755 .local/bin/track diff --git a/.config/git/config b/.config/git/config index 06b5c3e..a36d908 100644 --- a/.config/git/config +++ b/.config/git/config @@ -32,6 +32,7 @@ litter = !litter update = !gitupdate history = !git-file-history + track = !track [merge] tool = nvimdiff [rebase] diff --git a/.local/bin/track b/.local/bin/track new file mode 100755 index 0000000..c4b0dbc --- /dev/null +++ b/.local/bin/track @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +git add --intent-to-add $(git ls-files --others --exclude-standard | fzf --query "$1" --multi --preview 'bat --color=always {}') -- 2.51.2