feat: more ricing to the devcontainer

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2024-01-23 18:58:46 -05:00
1 parent a16b347c54
commit b9575ad14f
3 files changed
+25 -8

No files matched your search

+23 -7
View File
@@ -3,7 +3,7 @@ set -e
set -o noglob
# Create the fish configuration directory
mkdir -p ~/.config/fish/conf.d
mkdir -p ~/.config/fish/{completions,conf.d}
# Hook direnv into fish
tee ~/.config/fish/conf.d/direnv.fish > /dev/null <<EOF
@@ -15,11 +15,27 @@ tee ~/.config/fish/conf.d/starship.fish > /dev/null <<EOF
starship init fish | source
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"
/usr/bin/fish -c "fisher install edc/bass"
/usr/bin/fish -c "fisher install jorgebucaran/autopair.fish"
/usr/bin/fish -c "fisher install nickeb96/puffer-fish"
# Setup CLI tools autocompletions for fish
for tool in cilium flux helm k9s kubectl kustomize talhelper talosctl; do
$tool completion fish > ~/.config/fish/completions/$tool.fish
done
gh completion --shell fish > ~/.config/fish/completions/gh.fish
k0sctl completion --shell fish > ~/.config/fish/completions/k0sctl.fish
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
rm -rf .venv
fi
task workstation:venv
# Export the direnv environment variables
task workstation:direnv
# Remove the .venv directory
rm -rf .venv
# Create a new virtual environment
task workstation:venv