diff options
Diffstat (limited to '')
-rw-r--r-- | .urxvt/extensions/wgetpaste | 7 |
1 files changed, 5 insertions, 2 deletions
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 () } |