1
0
mirror of https://github.com/Morantron/tmux-fingers.git synced 2024-06-25 07:27:52 +02:00

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.
This commit is contained in:
John Kurkowski 2017-05-21 17:16:23 -07:00
parent 95008b3f3a
commit 0f2be7c986

View File

@ -103,7 +103,7 @@ function copy_result() {
fi fi
if [[ $HAS_TMUX_YANK = 1 ]]; then 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 fi
} }