summaryrefslogtreecommitdiff
path: root/.urxvt
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-09-30 16:55:17 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-09-30 16:55:18 +0200
commit0622305cc657a2cd1f62bd72843446e0fe7ffad8 (patch)
tree3a706a07582aed66f3538feb3f24de2b21bf11bf /.urxvt
parent5409effc90a24ac9a5f63b332af6c96e8b6fdfaf (diff)
downloaddotfiles-0622305cc657a2cd1f62bd72843446e0fe7ffad8.tar.gz
dotfiles-0622305cc657a2cd1f62bd72843446e0fe7ffad8.tar.bz2
dotfiles-0622305cc657a2cd1f62bd72843446e0fe7ffad8.zip
urxvt: execute the wgetpaste check each time
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 ()
}