We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b1a436 commit 589edd9Copy full SHA for 589edd9
yank.tmux
@@ -28,7 +28,10 @@ set_error_bindings() {
28
29
error_handling_if_command_not_present() {
30
local copy_command="$1"
31
- if [ -z "$copy_command" ]; then
+ if [ -n "$DISPLAY ] || [ -n "$WAYLAND_DISPLAY" ]; then
32
+ display_present=true
33
+ fi
34
+ if [ -z "$copy_command" ] && [ -n "$display_present" ]; then
35
set_error_bindings
36
exit 0
37
fi
0 commit comments