From fad2f5a2474c968ac448184d6808ee4268c4bbe9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Thu, 12 Feb 2026 02:01:38 +0100 Subject: Make fishupd a function and allow overriding repo modified: conf.d/02platform.fish new file: functions/fishupd.fish --- functions/fishupd.fish | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 functions/fishupd.fish (limited to 'functions') diff --git a/functions/fishupd.fish b/functions/fishupd.fish new file mode 100644 index 0000000..3e244d1 --- /dev/null +++ b/functions/fishupd.fish @@ -0,0 +1,16 @@ +function fishupd --description "Update fish configuration" + +if not command -q 'git' + echo "Can't find git." + return 1 +end + +pushd "$__fish_config_dir" + if test -z "$FISHCFGREPO" + git pull + else + git pull "$FISHCFGREPO" + end +popd + +end -- cgit v1.3.1