From 8600374371f91843064441113f4023cda1730877 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 18 Mar 2023 16:40:57 -0300 Subject: General fish fixes and updates --- .config/fish/functions/git_sync_all.fish | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .config/fish/functions/git_sync_all.fish (limited to '.config/fish/functions/git_sync_all.fish') diff --git a/.config/fish/functions/git_sync_all.fish b/.config/fish/functions/git_sync_all.fish new file mode 100644 index 00000000..35a56b6a --- /dev/null +++ b/.config/fish/functions/git_sync_all.fish @@ -0,0 +1,6 @@ +function git_sync_all + for branch in (git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); + git checkout (echo $branch | awk -F'/' '{print $1="\r"; $2="\r"; print;}' | xargs | sed 's/ /\//g'); + git pull -p + end +end -- cgit v1.2.3