From b1e86fd7e719ff243535751cf8bc3c75f8531f29 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 5 Sep 2022 14:08:27 +0100 Subject: porting some ksh aliases and functions to fish --- fish/functions/snapdate.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 fish/functions/snapdate.fish (limited to 'fish/functions/snapdate.fish') diff --git a/fish/functions/snapdate.fish b/fish/functions/snapdate.fish new file mode 100644 index 0000000..daaeb73 --- /dev/null +++ b/fish/functions/snapdate.fish @@ -0,0 +1,3 @@ +function snapdate --wraps=curl\ -s\ https://cdn.openbsd.org/pub/OpenBSD/snapshots/amd64/\|grep\ INSTALL\|tr\ -d\ \'\ \'\|cut\ -d\'\>\'\ -f3\|cut\ -d\':\'\ -f1 --description alias\ snapdate=curl\ -s\ https://cdn.openbsd.org/pub/OpenBSD/snapshots/amd64/\|grep\ INSTALL\|tr\ -d\ \'\ \'\|cut\ -d\'\>\'\ -f3\|cut\ -d\':\'\ -f1 + curl -s https://cdn.openbsd.org/pub/OpenBSD/snapshots/amd64/|grep INSTALL|tr -d ' '|cut -d'>' -f3|cut -d':' -f1 $argv; +end -- cgit v1.2.3