[Opencode] bubblewrap
This commit is contained in:
21
.config/fish/functions/opencodes.fish
Normal file
21
.config/fish/functions/opencodes.fish
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
function opencodes --description 'bubblewraped opencode'
|
||||||
|
bwrap --unshare-all \
|
||||||
|
--newsession \
|
||||||
|
--clearenv \
|
||||||
|
--die-with-parent \
|
||||||
|
--share-net \
|
||||||
|
--dev /dev \
|
||||||
|
--proc /proc \
|
||||||
|
--ro-bind /usr /usr \
|
||||||
|
--ro-bind /lib /lib \
|
||||||
|
--ro-bind /lib64 /lib64 \
|
||||||
|
--ro-bind /bin /bin \
|
||||||
|
--ro-bind /etc /etc \
|
||||||
|
--ro-bind ~/.config/opencode ~/.config/opencode \
|
||||||
|
--tmpfs /tmp/node-compile-cache \
|
||||||
|
--bind ~/.local/state/opencode ~/.local/state/opencode \
|
||||||
|
--bind ~/.local/share/opencode ~/.local/share/opencode \
|
||||||
|
--bind "$(pwd)" "$(pwd)" \
|
||||||
|
opencode
|
||||||
|
end
|
||||||
|
# strace -f -e trace=%file opencode
|
||||||
Reference in New Issue
Block a user