Don't call in to xclip when $DISPLAY isn't available.

This commit is contained in:
2014-12-12 00:01:10 -08:00
parent 91de69b8c7
commit faa4fab7c0
3 changed files with 8 additions and 8 deletions

View File

@@ -121,7 +121,7 @@ function oscopy() {
then
reattach-to-user-namespace pbcopy
else
xclip -selection c
test -n "$DISPLAY" && xclip -selection c
fi
}