Adding staruser so non root users can install starship. Requires user to have an already configured home dir with ownership, usage: auto-install staruser

This commit is contained in:
Raven Scott 2022-06-26 13:40:06 -05:00
parent 9423adf377
commit bfc31bc1c2
2 changed files with 23 additions and 2 deletions

View File

@ -16,14 +16,15 @@ apt install zip unzip -y
echo "[-] Download fonts [-]" echo "[-] Download fonts [-]"
echo "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip" echo "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip"
wget -q https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip wget -q https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip
unzip FiraCode.zip -d ~/.fonts mkdir ~/.fonts -vp
unzip -ao FiraCode.zip -d ~/.fonts
rm -vf FiraCode.zip rm -vf FiraCode.zip
sudo apt install fontconfig -y sudo apt install fontconfig -y
fc-cache -fv fc-cache -fv
echo "downloading preconfigured style" echo "downloading preconfigured style"
mkdir -vp ~/.config mkdir -vp ~/.config
wget -q -O ~/.config/starship.toml https://paste.discord-linux.com/65260252683046 wget -q -O ~/.config/starship.toml https://paste.discord-linux.com/85492450859640
echo "done!" echo "done!"
echo 'eval "$(starship init bash)"' >> ~/.bashrc echo 'eval "$(starship init bash)"' >> ~/.bashrc

20
ubuntu/staruser Normal file
View File

@ -0,0 +1,20 @@
#!/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! "