aboutsummaryrefslogtreecommitdiff
path: root/home/dot_local/share/bin/executable_fork.tmpl
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-10-10 20:03:13 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-10-10 20:03:13 +0200
commit6bbc3dde7b296a485a8ad14d992b4d58b89bcdea (patch)
tree4dccd3edfc2297c65a1ab85fd7bdeb71d0a9913c /home/dot_local/share/bin/executable_fork.tmpl
parentc1044972c135126a6c9620ccb4cf4b1c6f6bf985 (diff)
more fixesHEADmaster
Diffstat (limited to 'home/dot_local/share/bin/executable_fork.tmpl')
-rw-r--r--home/dot_local/share/bin/executable_fork.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/home/dot_local/share/bin/executable_fork.tmpl b/home/dot_local/share/bin/executable_fork.tmpl
new file mode 100644
index 0000000..419b1d3
--- /dev/null
+++ b/home/dot_local/share/bin/executable_fork.tmpl
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+({{- if eq .chezmoi.os "linux" }}setsid{{- else -}}nohup{{- end }} "$@" > /dev/null 2> /dev/null &)