From bfc31bc1c215180425449619d276b71e3aa084cb Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sun, 26 Jun 2022 13:40:06 -0500 Subject: [PATCH] Adding staruser so non root users can install starship. Requires user to have an already configured home dir with ownership, usage: auto-install staruser --- ubuntu/starship | 5 +++-- ubuntu/staruser | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 ubuntu/staruser diff --git a/ubuntu/starship b/ubuntu/starship index 2aeebee..27a3551 100644 --- a/ubuntu/starship +++ b/ubuntu/starship @@ -16,14 +16,15 @@ apt install zip unzip -y echo "[-] Download fonts [-]" 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 -unzip FiraCode.zip -d ~/.fonts +mkdir ~/.fonts -vp +unzip -ao FiraCode.zip -d ~/.fonts rm -vf FiraCode.zip sudo apt install fontconfig -y fc-cache -fv echo "downloading preconfigured style" 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 'eval "$(starship init bash)"' >> ~/.bashrc diff --git a/ubuntu/staruser b/ubuntu/staruser new file mode 100644 index 0000000..a3f85b3 --- /dev/null +++ b/ubuntu/staruser @@ -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! "