From 3bc60475043ec76b8647a140009606f1b3456281 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sat, 29 Mar 2025 22:15:07 -0400 Subject: [PATCH] AutoYADM commit: 2025-03-29 22:15:07 --- .config/fish/functions/pb.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/fish/functions/pb.fish b/.config/fish/functions/pb.fish index 8ce1476c..717bea20 100644 --- a/.config/fish/functions/pb.fish +++ b/.config/fish/functions/pb.fish @@ -46,7 +46,11 @@ id - select a paste and print its id" set -l args $argv[2..] switch $cmd case create - set -l output (hut paste create $args) + if test (count $args) = 0 + set output (hut paste create (fzf)) + else + set output (hut paste create $args) + end if not test $status = 0 echo 'Error creating paste!' false