Improve requirements check for OS X

This commit is contained in:
Bruno Sutic 2014-06-25 12:16:28 +02:00
parent cf98b09425
commit a8da4c2a96
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,7 @@
### master
- updated readme
- for OS X, also check if 'reattach-to-user-namespace' is installed
### v0.0.1, Jun 24, 2014

View file

@ -42,7 +42,8 @@
clipboard_copy_command() {
if command_exists "xclip"; then
echo "xclip"
elif command_exists "pbcopy"; then
# reattach-to-user-namespace is required for OS X
elif command_exists "pbcopy" && command_exists "reattach-to-user-namespace"; then
echo "reattach-to-user-namespace pbcopy"
fi
}