From 006188e07d59de06ae8e03e53f671fcaed02a995 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 28 Apr 2019 18:54:07 -0700 Subject: [PATCH] Add xiwibg function. --- dotfiles/zshrc.d/crouton.zsh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 dotfiles/zshrc.d/crouton.zsh diff --git a/dotfiles/zshrc.d/crouton.zsh b/dotfiles/zshrc.d/crouton.zsh new file mode 100644 index 0000000..ff38ce4 --- /dev/null +++ b/dotfiles/zshrc.d/crouton.zsh @@ -0,0 +1,7 @@ +if command -v xiwi >/dev/null 2>&1; then + function xiwibg { + local tmpf=$(mktemp) + echo Logging to ${tmpf} + nohup xiwi "$@" >${tmpf} 2>&1 & + } +fi