refactor: Update apt-cacher setup script to use IP address instead of hostname for the proxy server
This commit is contained in:
@@ -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!"
|
||||
|
Reference in New Issue
Block a user