Run dev tooling in a persistent "dev" distrobox on the Steam Deck
SteamOS updates wipe pacman-installed packages and headers, so nvim, treesitter build deps and Go tools now live in an Arch distrobox. - bashrc: auto-enter the dev container from interactive host shells (skip with NO_DISTROBOX=1) - systemd/distrobox-dev.service: start the container at login - packages.txt: add treesitter build deps, Nerd Font symbols, Go devtools Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -1 +1,8 @@
|
||||
alias vim=nvim
|
||||
|
||||
# Drop interactive host shells straight into the "dev" distrobox.
|
||||
# Skip with: NO_DISTROBOX=1 bash
|
||||
if [[ $- == *i* && -z $CONTAINER_ID && ! -e /run/.containerenv && -z $NO_DISTROBOX ]] \
|
||||
&& command -v distrobox >/dev/null && podman container exists dev 2>/dev/null; then
|
||||
distrobox enter dev && exit # falls back to host shell if enter fails
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user