This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/bash/module/Distrobox.sh

16 lines
303 B
Bash
Raw Normal View History

# Create/Attach to the box.
# Uses name `main` by default.
# Usage: da [BOX]
function da() {
local name="${1}"
[[ "${name}" = "" ]] && name="main"
# if [[ "${name}" = "" ]]; then
# help da
# return 2
# fi
# --user 0 is required for rootless docker.
distrobox enter -a '--user=0' "${name}"
}