From 0f2be7c9861d1726ba83600fccbd9a816e8c99be Mon Sep 17 00:00:00 2001 From: John Kurkowski Date: Sun, 21 May 2017 17:16:23 -0700 Subject: [PATCH] Fix silent yank error on macOS My `$tmux_yank_copy_command` is `reattach-to-user-namespace pbcopy`. Running it myself in `nohup` is fine. However, tmux-fingers running it with `nohup` produces a silent error: `nohup: can't detach from console: Inappropriate ioctl for device`. Removing `nohup` restores my yank ability. --- scripts/fingers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fingers.sh b/scripts/fingers.sh index 0a0901a..d2cd495 100755 --- a/scripts/fingers.sh +++ b/scripts/fingers.sh @@ -103,7 +103,7 @@ function copy_result() { fi if [[ $HAS_TMUX_YANK = 1 ]]; then - echo -n "$result" | eval "nohup $tmux_yank_copy_command" > /dev/null + echo -n "$result" | eval "$tmux_yank_copy_command" > /dev/null fi }