mirror of
https://github.com/tmux-plugins/tmux-yank.git
synced 2026-09-10 07:36:17 -04:00
bugfix
This commit is contained in:
parent
f3dcea420c
commit
d09dde2f24
|
|
@ -9,17 +9,12 @@
|
|||
type "$command" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
check_reattach_needed() {
|
||||
# lexicographic comparison
|
||||
[[ "$OSTYPE" == "darwin"* ]] && [[ "${OSTYPE//darwin/}" < "14.0.0" ]]
|
||||
}
|
||||
|
||||
clipboard_copy_command() {
|
||||
# reattach-to-user-namespace is required for OS X
|
||||
if command_exists "pbcopy"; then
|
||||
if check_reattach_needed && command_exists "reattach-to-user-namespace"; then
|
||||
if [[ "${OSTYPE//darwin/}" < "14.0.0" ]] && command_exists "reattach-to-user-namespace"; then
|
||||
echo "reattach-to-user-namespace pbcopy"
|
||||
elif ! check_reattach_needed; then
|
||||
elif [[ "${OSTYPE//darwin/}" > "13.0.0" ]]; then
|
||||
echo "pbcopy"
|
||||
fi
|
||||
elif command_exists "xclip"; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue