From 6bbc3dde7b296a485a8ad14d992b4d58b89bcdea Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 10 Oct 2026 20:03:13 +0200 Subject: more fixes --- home/dot_local/share/bin/executable_fork | 2 -- home/dot_local/share/bin/executable_fork.tmpl | 2 ++ home/dot_profile | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) delete mode 100644 home/dot_local/share/bin/executable_fork create mode 100644 home/dot_local/share/bin/executable_fork.tmpl diff --git a/home/dot_local/share/bin/executable_fork b/home/dot_local/share/bin/executable_fork deleted file mode 100644 index 1b1d56d..0000000 --- a/home/dot_local/share/bin/executable_fork +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -(setsid "$@" > /dev/null 2> /dev/null &) 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 &) diff --git a/home/dot_profile b/home/dot_profile index 801eb72..06eb8c1 100644 --- a/home/dot_profile +++ b/home/dot_profile @@ -100,7 +100,11 @@ export TEXMFCONFIG="$XDG_CONFIG_HOME/texlive/texmf-config" export INPUTRC="$XDG_CONFIG_HOME/inputrc" alias nvidia-settings='nvidia-settings --config="$XDG_CONFIG_HOME/nvidia/settings"' alias gpg2='gpg2 --homedir "$XDG_DATA_HOME/gnupg"' -alias pip3='PIP_CONFIG_FILE="$XDG_CONFIG_HOME/pip/user.conf" pip3' +_pip3_user() { + [ -n "$VIRTUAL_ENV" ] && PIP_CONFIG_FILE="$XDG_CONFIG_HOME/pip/user.conf" + pip3 "$@" +} +alias pip3=_pip3_user alias pip=pip3 # CMake -- cgit v1.2.3