From 71d675c91c0f54ce5128089df8bba74e10db952c Mon Sep 17 00:00:00 2001 From: yeti Date: Thu, 24 Apr 2025 20:48:06 +0100 Subject: [PATCH] feat(buildah): reduce run statements --- build-workspace.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build-workspace.sh b/build-workspace.sh index 390c008..e983398 100755 --- a/build-workspace.sh +++ b/build-workspace.sh @@ -25,11 +25,12 @@ buildah run "$ctr" -- bash -c "\ buildah copy --chown $DEV_USER:$DEV_USER "$ctr" ./home/. $DEV_HOME buildah copy "$ctr" ssh $SECURE/ssh -# zsh and tmux config (immutable) -buildah run "$ctr" -- chown -R $DEV_USER:$DEV_USER $DEV_HOME -buildah run --user $DEV_USER "$ctr" -- nvim --headless "+Lazy! sync" +qa -buildah run --user $DEV_USER "$ctr" -- nvim --headless "+Lazy! sync" +qa -buildah run --user $DEV_USER "$ctr" -- nvim --headless "+Lazy! sync" +qa +# configure lazyvim +buildah run --user $DEV_USER "$ctr" -- bash -c "\ + nvim --headless \"+Lazy! sync\" +qa && sleep 1 && \ + nvim --headless \"+Lazy! sync\" +qa && sleep 1 && \ + nvim --headless \"+Lazy! sync\" +qa +" # lock the files buildah run "$ctr" -- bash -c "\