feat: even more ricing of the devcontainer
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
2 files changed
+10
-4
No files matched your search
@@ -2,7 +2,6 @@
|
|||||||
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
|
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
|
||||||
"name": "Flux Cluster Template",
|
"name": "Flux Cluster Template",
|
||||||
"image": "ghcr.io/onedr0p/flux-cluster-template/devcontainer:base",
|
"image": "ghcr.io/onedr0p/flux-cluster-template/devcontainer:base",
|
||||||
"postCreateCommand": {
|
"postCreateCommand": "bash ${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh",
|
||||||
"deps": "${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh"
|
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -15,6 +15,13 @@ tee ~/.config/fish/conf.d/starship.fish > /dev/null <<EOF
|
|||||||
starship init fish | source
|
starship init fish | source
|
||||||
EOF
|
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
|
# 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 "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher"
|
||||||
/usr/bin/fish -c "fisher install decors/fish-colored-man"
|
/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
|
yq shell-completion fish > ~/.config/fish/completions/yq.fish
|
||||||
|
|
||||||
# Create/update virtual environment
|
# 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
|
rm -rf .venv
|
||||||
fi
|
fi
|
||||||
task workstation:venv
|
task workstation:venv
|
||||||
|
|||||||
Reference in new issue
Block a user