dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 60e342fd15df92ffef47b39cf04b089918541401
parent 93cfe7bb221f5a8a6facdc140a32fd43b9ff2e49
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 15 Jul 2019 16:24:39 +0200

Use setsid instead of nohup ... & for o command

Diffstat:
M.commands.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.commands.sh b/.commands.sh @@ -33,7 +33,7 @@ alias la='ls -A' o() { [ "$(uname)" = 'Darwin' ] && open="open" || open="xdg-open" if [ "$#" -gt 0 ] && [ -f "$1" ]; then - nohup $open "$1" >/dev/null 2>&1 & + setsid $open "$1" >/dev/null 2>&1 else IFS= out=$(fzf --query="$1" --exit-0 \ --expect=ctrl-o,ctrl-e,ctrl-y \ @@ -48,7 +48,7 @@ o() { elif [ "$key" = ctrl-o ]; then cd "$(dirname "$file")" || return else - nohup $open "$file" >/dev/null 2>&1 & + setsid $open "$file" >/dev/null 2>&1 fi fi fi