From df8b7b5bfe244eaebda24d747ba9c60f7f6bd0c1 Mon Sep 17 00:00:00 2001 From: Job79 Date: Sun, 29 Sep 2024 16:48:19 +0200 Subject: [PATCH] feat: add bash_profile for creating copilot directory --- Containerfile | 5 +++-- config/user/profile | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 config/user/profile diff --git a/Containerfile b/Containerfile index 7ae0083..a0f532b 100644 --- a/Containerfile +++ b/Containerfile @@ -10,6 +10,7 @@ RUN useradd -ms /bin/bash user && usermod -aG wheel user && sed -i '/NOPASSWD/s/ USER user WORKDIR /home/user COPY config/user/bashrc /home/user/.bashrc +COPY config/user/profile /home/user/.bash_profile # === setup neovim === RUN git clone --depth 1 https://github.com/LazyVim/starter ~/.config/nvim @@ -19,5 +20,5 @@ COPY config/nvim/lazyvim.json /home/user/.config/nvim/lazyvim.json # === setup container === ENV TZ="Europe/Amsterdam" -VOLUME /home/user/.local /home/user/.cache /home/user/.config/github-copilot -CMD ["bash"] +VOLUME /home/user/.local /home/user/.cache +CMD ["bash", "-l"] diff --git a/config/user/profile b/config/user/profile new file mode 100644 index 0000000..683af33 --- /dev/null +++ b/config/user/profile @@ -0,0 +1,7 @@ +. ~/.bashrc + +# === persist copilot auth files inside .local volume === +if [ ! -d ~/.config/github-copilot ]; then + mkdir -p ~/.local/share/github-copilot + ln -s ~/.local/share/github-copilot ~/.config +fi