Improve interactive fetch to allow multi-remote pushing

This commit is contained in:
Talia 2025-05-19 10:32:50 +02:00
parent 3e2d61f54f
commit 3c8df651d1
2 changed files with 5 additions and 1 deletions

4
bin/git-interactive-push Executable file
View file

@ -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

View file

@ -21,7 +21,7 @@ alias tmux='tmux -2'
alias w='watch -t -d -n 1' alias w='watch -t -d -n 1'
alias wmu='wake-me-up' alias wmu='wake-me-up'
alias tmfa='tmux-fzf' 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() { bat_theme() {
if [ -e $HOME/.dark ] if [ -e $HOME/.dark ]