feat: devcontainer properly hooks starship and direnv now
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
5 files changed
+15
-13
No files matched your search
@@ -35,11 +35,8 @@ for installer_path in \
|
||||
"go-task/task!" \
|
||||
"k0sproject/k0sctl!" \
|
||||
"stern/stern!" \
|
||||
"siderolabs/talos!!?as=talosctl" \
|
||||
"yannh/kubeconform!"
|
||||
do
|
||||
curl -fsSL "https://i.jpillora.com/${installer_path}" | bash
|
||||
done
|
||||
|
||||
curl -fsSL -o /usr/local/bin/talosctl \
|
||||
"https://github.com/siderolabs/talos/releases/latest/download/talosctl-linux-${ARCH}"
|
||||
chmod +x /usr/local/bin/talosctl
|
||||
@@ -3,6 +3,6 @@
|
||||
"name": "Flux Cluster Template",
|
||||
"image": "ghcr.io/onedr0p/flux-cluster-template/devcontainer:base",
|
||||
"postCreateCommand": {
|
||||
"deps": "${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh"
|
||||
"deps": "bash ${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh"
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
set -o noglob
|
||||
|
||||
# Create the fish configuration directory
|
||||
mkdir -p ~/.config/fish/conf.d
|
||||
|
||||
# Hook direnv into fish
|
||||
cat << EOF > ~/.config/fish/conf.d/direnv.fish
|
||||
tee ~/.config/fish/conf.d/direnv.fish > /dev/null <<EOF
|
||||
direnv hook fish | source
|
||||
EOF
|
||||
|
||||
# Hook starship into fish
|
||||
cat << EOF > ~/.config/fish/conf.d/starship.fish
|
||||
tee ~/.config/fish/conf.d/starship.fish > /dev/null <<EOF
|
||||
starship init fish | source
|
||||
EOF
|
||||
|
||||
|
||||
Reference in new issue
Block a user