feat: even more ricing of the devcontainer

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2024-01-24 00:23:12 +00:00
1 parent 04a6e36281
commit e6783b3c12
2 files changed
+10 -4

No files matched your search

+2 -3
View File
@@ -2,7 +2,6 @@
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
"name": "Flux Cluster Template",
"image": "ghcr.io/onedr0p/flux-cluster-template/devcontainer:base",
"postCreateCommand": {
"deps": "${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh"
}
"postCreateCommand": "bash ${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh",
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}"
}
+8 -1
View File
@@ -15,6 +15,13 @@ tee ~/.config/fish/conf.d/starship.fish > /dev/null <<EOF
starship init fish | source
EOF
# Silence fish prompt
tee ~/.config/fish/conf.d/fish_greeting.fish > /dev/null <<EOF
function fish_greeting
echo (set_color yellow)"Press [enter] to clear the direnv error"
end
EOF
# Setup fisher plugin manager for fish
/usr/bin/fish -c "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher"
/usr/bin/fish -c "fisher install decors/fish-colored-man"
@@ -32,7 +39,7 @@ stern --completion fish > ~/.config/fish/completions/stern.fish
yq shell-completion fish > ~/.config/fish/completions/yq.fish
# Create/update virtual environment
if ! grep -q "/workspaces/flux-template-cluster/.venv" .venv/pyvenv.cfg; then
if ! grep -q "venv /workspaces/" .venv/pyvenv.cfg; then
rm -rf .venv
fi
task workstation:venv