diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-09-30 16:55:17 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-09-30 16:55:18 +0200 |
commit | 0622305cc657a2cd1f62bd72843446e0fe7ffad8 (patch) | |
tree | 3a706a07582aed66f3538feb3f24de2b21bf11bf | |
parent | 5409effc90a24ac9a5f63b332af6c96e8b6fdfaf (diff) | |
download | dotfiles-0622305cc657a2cd1f62bd72843446e0fe7ffad8.tar.gz dotfiles-0622305cc657a2cd1f62bd72843446e0fe7ffad8.tar.bz2 dotfiles-0622305cc657a2cd1f62bd72843446e0fe7ffad8.zip |
urxvt: execute the wgetpaste check each time
-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 () } |