# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 145155 2016-01-27 03:09:24Z khindenburg@macports.org $ PortSystem 1.0 PortGroup github 1.0 github.setup ChrisJohnsen tmux-MacOSX-pasteboard 2.4 v name tmux-pasteboard license BSD categories sysutils maintainers larryv platforms darwin description Wrapper to use pasteboard services in tmux long_description ${description} checksums rmd160 ef47540b45b515a219096bd754da95c6e491753c \ sha256 c93ef1824bf933748e8d020eddc8811d09b6758729cd0384df58ea352aca59e0 use_configure no variant universal {} depends_run path:bin/tmux:tmux build.args ARCHES="[get_canonical_archs]" build.env CC="${configure.cc}" \ CFLAGS="-I${prefix}/include" \ LDFLAGS="-L${prefix}/lib" build.target reattach-to-user-namespace destroot { xinstall -m 755 ${worksrcpath}/reattach-to-user-namespace \ ${destroot}${prefix}/bin/ } notes \ "To enable tmux-MacOSX-pasteboard add the following line to ~/.tmux.conf replacing 'bash' with your actual shell: set-option -g default-command \"${prefix}/bin/reattach-to-user-namespace bash\"" \ "You can then copy last tmux buffer into system general pasteboard using: tmux save-buffer - | pbcopy" \ "or define a handier alias for it"