Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions images/homelab-workspace/coder/agent-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ initialize_shell_config() {
cp $skel $target
fi
done
if [[ ! -f ${HOME}/.local/bin/starship ]]; then

local home_bin_dir="${HOME}/.local/bin"
mkdir -p $home_bin_dir

if [[ ! -f $home_bin_dir/starship ]]; then
echo "Starship binary not found, installing..."
curl -sS https://starship.rs/install.sh | sh -s - --bin-dir $HOME/.local/bin -y
curl -sS https://starship.rs/install.sh | sh -s - --bin-dir $home_bin_dir -y
else
echo "Starship binary already exists, skipping install."
fi
Expand Down