From b861a2a48265818db5b1aa850b6361f2e6305ebe Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 17 Feb 2022 16:42:31 -0500 Subject: [PATCH] change gall to a sh script --- bin/bin/gall | 11 +++++++++++ fish/.config/fish/functions/gall.fish | 5 ----- git/.gitconfig | 6 ++++++ vim/.vim/bundle/vim-fugitive | 2 +- 4 files changed, 18 insertions(+), 6 deletions(-) create mode 100755 bin/bin/gall delete mode 100644 fish/.config/fish/functions/gall.fish diff --git a/bin/bin/gall b/bin/bin/gall new file mode 100755 index 0000000..4bad928 --- /dev/null +++ b/bin/bin/gall @@ -0,0 +1,11 @@ +#!/bin/sh + +repos=$(find ~/workspace -type d -name .git) + +for repo in $repos; do + dir=$(dirname "$repo") + printf "%s\n" "$(basename "$dir")" + git -C "$dir" "$@" + printf "\n" +done + diff --git a/fish/.config/fish/functions/gall.fish b/fish/.config/fish/functions/gall.fish deleted file mode 100644 index cb0418d..0000000 --- a/fish/.config/fish/functions/gall.fish +++ /dev/null @@ -1,5 +0,0 @@ -# Defined in /tmp/fish.sXa0jy/gall.fish @ line 2 -function gall - find ~/workspace -type d -name .git -print0 \ - | xargs -0 -n1 -I% git --git-dir=% --work-tree=%/.. $argv -end diff --git a/git/.gitconfig b/git/.gitconfig index 822788b..becf13d 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -13,6 +13,12 @@ [pull] ff = only +[pager] + diff = diff-highlight | less + log = diff-highlight | less + reflog = diff-highlight | less + show = diff-highlight | less + [diff] colorMoved = default diff --git a/vim/.vim/bundle/vim-fugitive b/vim/.vim/bundle/vim-fugitive index 6c19f1d..c29ef11 160000 --- a/vim/.vim/bundle/vim-fugitive +++ b/vim/.vim/bundle/vim-fugitive @@ -1 +1 @@ -Subproject commit 6c19f1ddfb74b3b21f3d1e830bee1d1ed6a72ece +Subproject commit c29ef11cd6478da675678265e76f9e527843876f