• [object Object]@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    1 day ago

    I have a script named d in my PATH and it contains this:

    ("$@" > /dev/null 2>&1 &)
    

    It allows me to run any program in a fully detached state in a way that works even if the terminal that started the program closes, and it’s as simple as d <command>.