From 0622305cc657a2cd1f62bd72843446e0fe7ffad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 30 Sep 2013 16:55:17 +0200 Subject: urxvt: execute the wgetpaste check each time --- .urxvt/extensions/wgetpaste | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.urxvt') diff --git a/.urxvt/extensions/wgetpaste b/.urxvt/extensions/wgetpaste index 0f159c3..1f81f54 100644 --- a/.urxvt/extensions/wgetpaste +++ b/.urxvt/extensions/wgetpaste @@ -8,8 +8,11 @@ use IPC::Open2; sub on_start { my ($self) = @_; - push @{ $self->{term}{selection_popup_hook} }, sub { ("Pastebin" => \&wgetpaste) } - if `which wgetpaste 2> /dev/null`; + push @{ $self->{term}{selection_popup_hook} }, sub { + `which wgetpaste 2> /dev/null` + ? ("Pastebin" => \&wgetpaste) + : () + }; return () } -- cgit v1.2.3