This commit is contained in:
bitozoid 2017-05-25 07:49:18 +00:00 committed by GitHub
commit d4b1e1e1c9

View file

@ -108,7 +108,9 @@
clipboard_copy_command() {
# installing reattach-to-user-namespace is recommended on OS X
if command_exists "pbcopy"; then
if [ -n "$(custom_copy_command)" ]; then
custom_copy_command
elif command_exists "pbcopy"; then
if command_exists "reattach-to-user-namespace"; then
echo "reattach-to-user-namespace pbcopy"
else
@ -126,8 +128,6 @@
echo "xsel -i --$xsel_selection"
elif command_exists "putclip"; then # cygwin clipboard command
echo "putclip"
elif [ -n "$(custom_copy_command)" ]; then
custom_copy_command
fi
}