summaryrefslogtreecommitdiff
path: root/.urxvt
diff options
context:
space:
mode:
Diffstat (limited to '.urxvt')
-rw-r--r--.urxvt/extensions/wgetpaste7
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 ()
}