dotfiles/.local/bin/nvim

21 lines
516 B
Bash
Executable file

#!/bin/sh
ROOT=""$HOME"/Documents/Miscellaneous/alpchroot/"
bwrap \
--bind "$ROOT" / \
--dev-bind /dev /dev \
--proc /proc \
--tmpfs /tmp \
--bind "$ROOT"/usr /usr \
--bind "$ROOT"/bin /bin \
--bind "$ROOT"/sbin /sbin \
--bind "$ROOT"/etc /etc \
--bind "$ROOT"/lib /lib \
--bind "$ROOT"/lib64 /lib64 \
--setenv SHELL /bin/ash \
--bind "$HOME" "$HOME" \
--setenv "$XDG_RUNTIME_DIR" "$XDG_RUNTIME_DIR" \
--bind "$XDG_RUNTIME_DIR" "$XDG_RUNTIME_DIR" \
--share-net \
/usr/bin/nvim "$@"