From 74e47e208a9385a972ff26ca80111ae1bf898a11 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Fri, 1 Jan 2021 22:00:05 +0000 Subject: [PATCH] Add flpu, a combination of fossil pull & up --- fish/functions/flpu.fish | 3 +++ zshrc | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 fish/functions/flpu.fish diff --git a/fish/functions/flpu.fish b/fish/functions/flpu.fish new file mode 100644 index 0000000..50e2f95 --- /dev/null +++ b/fish/functions/flpu.fish @@ -0,0 +1,3 @@ +function flpu --wraps='fossil update' + fossil pull && fossil update $argv +end diff --git a/zshrc b/zshrc index dce2dee..737b4be 100644 --- a/zshrc +++ b/zshrc @@ -251,6 +251,10 @@ if __has_command fossil; then fossil diff -N "$@" | colordiff | less -FRX } + flpu() { + fossil pull && fossil update "$@" + } + flgrep() { local ret=1 fossil changes --all . | sed 's/^.* //' | while read file; do