diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 56fd0a2..833a894 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -8,6 +8,10 @@ RUN bash ./setup.sh RUN useradd -m -G wheel vscode USER vscode -RUN bash ./rust.sh +RUN rustup install nightly -ENV PATH="/root/.cargo/bin:$PATH" +RUN sudo pacman --noconfirm -S pfetch +RUN echo "alias clear=\"clear; pfetch\"" >> /home/vscode/.bashrc +RUN echo "pfetch" >> /home/vscode/.bashrc + +ENV PS1="\[\033[38;5;8m\]\T\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;13m\]\W\[$(tput sgr0)\] \$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/') \[$(tput sgr0)\]\[\033[38;5;7m\][\$?]\[$(tput sgr0)\]\n\[$(tput sgr0)\]\[\033[38;5;5m\]\\$\[$(tput sgr0)\] \[$(tput sgr0)\]" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1e913ec..4a768f6 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,12 +10,11 @@ } }, "extensions": [ - "rust-lang.rust", + "rust-lang.rust-analyzer", "bungcip.better-toml", "vadimcn.vscode-lldb", "mutantndino.resourcemonitor" ], "forwardPorts": [], - "postCreateCommand": "rustc --version", "remoteUser": "vscode" } diff --git a/.devcontainer/rust.sh b/.devcontainer/rust.sh deleted file mode 100644 index a119f7f..0000000 --- a/.devcontainer/rust.sh +++ /dev/null @@ -1,5 +0,0 @@ -rustup install nightly -rustup component add rustfmt -rustup component add clippy - -cargo install cargo-audit