From adfe1829846adcc9c4ac991a577fecaa63073647 Mon Sep 17 00:00:00 2001 From: James Robey Date: Tue, 27 Jan 2026 17:34:16 +0700 Subject: [PATCH] Use subshell for open() to avoid job control output (#4366) If it is not run as a sub-shell, using open and then subsequently closing the app will pollute the existing terminal with messages like: [1] 287915 [1]+ Done xdg-open "$@" > /dev/null 2>&1 Making it a subshell removes this noise and keeps it more like the open command in macOS. --- default/bash/aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default/bash/aliases b/default/bash/aliases index 8e485a35..4bca0799 100644 --- a/default/bash/aliases +++ b/default/bash/aliases @@ -21,9 +21,9 @@ if command -v zoxide &> /dev/null; then } fi -open() { +open() ( xdg-open "$@" >/dev/null 2>&1 & -} +) # Directories alias ..='cd ..'