dotfiles/.local/bin/nvim
2025-04-16 23:03:27 -06:00

22 lines
599 B
Bash
Executable file

#!/bin/sh
ROOT=""$HOME"/Documents/Miscellaneous/archroot"
bwrap \
--dev-bind /dev /dev \
--tmpfs /tmp \
--proc /proc \
--bind "$ROOT"/lib /lib \
--bind "$ROOT"/lib64 /lib64 \
--bind "$ROOT"/usr/lib /usr/lib \
--bind "$ROOT"/usr/lib64 /usr/lib64 \
--bind "$ROOT"/usr/bin /usr/bin \
--bind "$ROOT"/bin /bin \
--bind "$ROOT"/usr/share /usr/share \
--bind "$ROOT"/etc /etc \
--ro-bind "$ROOT"/etc/resolv.conf /etc/resolv.conf \
--bind "$HOME" "$HOME" \
--setenv "$XDG_RUNTIME_DIR" "$XDG_RUNTIME_DIR" \
--bind "$XDG_RUNTIME_DIR" "$XDG_RUNTIME_DIR" \
/usr/bin/nvim "$@"