.

  • somethingsomethingidk@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    I would make a bash function to do this. I’m on my phone so idk how this will look lol

    dbxcreate () {
    ALL_CONTAINER_HOME=${HOME}/dbx
    
    CONTAINER_NAME="$1"
    
    export DBX_CONTAINER_CUSTOM_HOME="${ALL_CONTAINER_HOME}/${CONTAINER_NAME}"
    
    distrobox create --name "${CONTAINER_NAME}"
    }
    

    I would add some checks/more arguments and error messages but thats the idea

    You may also have to make that home dir but then its as easy adding a mkdir line