From 042bf7a6a36a629c38c63374706ca42272f29895 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 6 Oct 2022 20:14:41 +0200 Subject: Re-introduce open alias This is a combination of nohup and xdg-open to open files in a more independent process. Left to do: How to detach it from the shell so that it does not show up in `jobs`? --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index a27fc9a..0196d39 100644 --- a/.bashrc +++ b/.bashrc @@ -35,6 +35,8 @@ if command -v pacman > /dev/null # ugly hack to detect Arch Linux then alias t="todo.sh" fi +function my_xdg_open() { nohup xdg-open "$1" > /dev/null 2>&1 & } +alias open=my_xdg_open # extend PATH by custom scripts (location based on XDG) -- cgit v1.2.3-70-g09d2