forked from PippCandy/autoinstallers
21 lines
791 B
Bash
21 lines
791 B
Bash
#!/bin/bash
|
|
echo "Welcome to the Starship CLI Installer for Discord-Linux!"
|
|
echo "We will install and configure Starship for you automatically."
|
|
echo "[-] Download fonts [-]"
|
|
echo "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip"
|
|
wget -q -O ~/font.zip https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip
|
|
mkdir ~/.fonts -vp
|
|
unzip -ao ~/font.zip -d ~/.fonts
|
|
rm -vf ~/font.zip
|
|
fc-cache -fv
|
|
|
|
echo "downloading preconfigured style"
|
|
mkdir -vp ~/.config
|
|
wget -q -O ~/.config/starship.toml https://paste.discord-linux.com/85492450859640
|
|
echo "done!"
|
|
|
|
echo 'eval "$(starship init bash)"' >> ~/.bashrc
|
|
echo "!!!!!CONFIGURATION COMPLETE!!!!!!!!!!"
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
echo "Please close the SSH Session and reconnect! "
|