summaryrefslogtreecommitdiffstats
path: root/fish/functions/snapdate.fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish/functions/snapdate.fish')
-rw-r--r--fish/functions/snapdate.fish3
1 files changed, 3 insertions, 0 deletions
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