refactor: Update apt-cacher setup script to use IP address instead of hostname for the proxy server

This commit is contained in:
2024-07-06 19:25:54 +02:00
parent 25141b254e
commit e06d0908af
4 changed files with 1204 additions and 2 deletions

View File

@@ -75,11 +75,26 @@ overwrite_starship_toml() {
fi
}
overwrite_starship_vanilla_toml() {
if [ -f "./terminal/starship-vanilla.toml" ]; then
echo "Overwriting starship.toml..."
cp ./terminal/starship-vanilla.toml ~/.config/starship.toml
else
echo "starship_vanilla.toml not found in the repository."
exit 1
fi
}
# Main script execution
install_fish
set_default_fish
install_starship
configure_starship
overwrite_starship_toml
if [ -z "$XDG_CURRENT_DESKTOP" ]; then
overwrite_starship_toml
else
overwrite_starship_vanilla_toml
fi
echo "Fish shell and Starship prompt setup complete!"