indigomirage@lemmy.ca to Linux@lemmy.ml · edit-21 year agoDelmessage-squaremessage-square2linkfedilinkarrow-up13arrow-down12file-text
arrow-up11arrow-down1message-squareDelindigomirage@lemmy.ca to Linux@lemmy.ml · edit-21 year agomessage-square2linkfedilinkfile-text
minus-squaresomethingsomethingidk@lemmy.worldlinkfedilinkarrow-up1·2 years agoI 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
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
deleted by creator