From 3c8df651d190ddec4545e27adcb40d69f66abb1e Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 19 May 2025 10:32:50 +0200 Subject: [PATCH] Improve interactive fetch to allow multi-remote pushing --- bin/git-interactive-push | 4 ++++ shell/alias | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 bin/git-interactive-push diff --git a/bin/git-interactive-push b/bin/git-interactive-push new file mode 100755 index 0000000..20ed485 --- /dev/null +++ b/bin/git-interactive-push @@ -0,0 +1,4 @@ +#!/bin/sh + +branch=$(git rev-parse --abbrev-ref HEAD) +git remote | fzf --layout=reverse --select-1 --preview="git remote show {}" --multi | xargs -I {} git push {} $branch diff --git a/shell/alias b/shell/alias index a003c76..f298031 100644 --- a/shell/alias +++ b/shell/alias @@ -21,7 +21,7 @@ alias tmux='tmux -2' alias w='watch -t -d -n 1' alias wmu='wake-me-up' alias tmfa='tmux-fzf' -alias gp='git push $(git remote | fzf --select-1 --preview='"'ls -l'"') $(git rev-parse --abbrev-ref HEAD)' +alias gp='git interactive-push' bat_theme() { if [ -e $HOME/.dark ]