Update Readme and Script

This commit is contained in:
Cameron Miller 2022-07-03 23:38:56 +01:00
parent 6a5a0f40a2
commit 2b2483fe99
2 changed files with 8 additions and 6 deletions

View File

@ -72,10 +72,12 @@ paru (or paru -Syu)
pikaur -Syu pikaur -Syu
#+end_example #+end_example
~You can also substitute these for your preferred AUR Helper, these are just the three i know of and have used.~
Many of CBSH's Packages are actually configuration files, these will get stored in /etc/cbsh, as we don't want to overwrite any config files you may already have on your system accidentally. If you'd like to use them, then you'd need to manually copy them from /etc/cbsh into $HOME. Many of CBSH's Packages are actually configuration files, these will get stored in /etc/cbsh, as we don't want to overwrite any config files you may already have on your system accidentally. If you'd like to use them, then you'd need to manually copy them from /etc/cbsh into $HOME.
=NOTE:= You do not need to run the CBSH install script more than once, if you succeeded in installing CBSH then you'll have access to the CBSH Repos and all of the Packages stored in them, so when a new update arrives and it installs packages that you don't have, you can simply install them via APT or Pacman. =NOTE:= You do not need to run the CBSH install script more than once, if you succeeded in installing CBSH then you'll have access to the CBSH Repos and all of the Packages stored in them, so when a new update arrives and it installs packages that you don't have, you can simply install them via Pacman or an AUR Helper.
* Contributing to CBSH * Contributing to CBSH
@ -142,7 +144,7 @@ sudo pacman --noconfirm --needed -Syu dialog || error "Error syncing the repos."
* The Welcome Message * The Welcome Message
#+begin_src bash #+begin_src bash
welcome () { \ welcome () { \
dialog --colors --title "\Z7\ZbInstalling CBSH!" --msgbox "\Z4This Postinstall Script will install my Qtile Desktop as well as Doom Emacs, Zsh with the Starship Prompt, the Kitty Shell and some other essential programs to make my dotfiles and programs work.\\n\\n-Cabooshy" 16 60 dialog --colors --title "\Z7\ZbInstalling CBSH!" --msgbox "\Z4This Postinstall Script will install my Qtile Desktop as well as Doom Emacs, Zsh with the Starship Prompt, ST, dmenu, and some other essential programs to make my dotfiles and programs work.\\n\\n-Cabooshy" 16 60
dialog --colors --title "\Z7\ZbStay Near your PC!" --yes-label "Continue" --no-label "Exit" --yesno "\Z4This script cannot be run as root, but when needed you will be asked for your sudo password during the installation. This will give PACMAN the necessary permissions to install the software needed. So stay near the computer" 10 60 dialog --colors --title "\Z7\ZbStay Near your PC!" --yes-label "Continue" --no-label "Exit" --yesno "\Z4This script cannot be run as root, but when needed you will be asked for your sudo password during the installation. This will give PACMAN the necessary permissions to install the software needed. So stay near the computer" 10 60
} }
@ -201,12 +203,12 @@ All packages listed are either in the standard Arch Repos or in my CBSH repos. t
sudo pacman --needed --ask 4 -Syu - < pkglist.txt sudo pacman --needed --ask 4 -Syu - < pkglist.txt
# Now that pikaur is installed, we can sync the AUR and install some needed packages (Nerd Fonts) from there. # Now that pikaur is installed, we can sync the AUR and install some needed packages (Nerd Fonts) from there.
pikaur -Syu nerd-fonts-source-code-pro nerd-fonts-fira-code pa-applet-git brave-bin pikaur -Syu nerd-fonts-source-code-pro nerd-fonts-fira-code librewolf-bin
#+end_src #+end_src
* Copying over the configs from /etc/cbsh to $HOME * Copying over the configs from /etc/cbsh to $HOME
Pacman cannot install files to $HOME, so normally we place them in /etc/skel, but as some distros such as Manjaro and Arco use /etc/skel for their own specific config files, we place them in /etc/cbsh so there are no conflicts on any arch based distro. the config files are placed here and then copied over to $HOME, we backup config just in case anything goes wrong. BEWARE! Pacman cannot install files to $HOME, so normally we would place them in /etc/skel, but as some distros such as Manjaro and Arco use /etc/skel for their own specific config files, we place them in /etc/cbsh so there are no conflicts on any arch based distro. the config files are placed here and then copied over to $HOME, we backup config just in case anything goes wrong. BEWARE!
~NOTE:~ /opt contains the SDDM theme and the Source Code for my builds of ST and dmenu. ~NOTE:~ /opt contains the SDDM theme and the Source Code for my builds of ST and dmenu.

4
cbsh
View File

@ -31,7 +31,7 @@ echo "########################################################################"
sudo pacman --noconfirm --needed -Syu dialog || error "Error syncing the repos." sudo pacman --noconfirm --needed -Syu dialog || error "Error syncing the repos."
welcome () { \ welcome () { \
dialog --colors --title "\Z7\ZbInstalling CBSH!" --msgbox "\Z4This Postinstall Script will install my Qtile Desktop as well as Doom Emacs, Zsh with the Starship Prompt, the Kitty Shell and some other essential programs to make my dotfiles and programs work.\\n\\n-Cabooshy" 16 60 dialog --colors --title "\Z7\ZbInstalling CBSH!" --msgbox "\Z4This Postinstall Script will install my Qtile Desktop as well as Doom Emacs, Zsh with the Starship Prompt, ST, dmenu, and some other essential programs to make my dotfiles and programs work.\\n\\n-Cabooshy" 16 60
dialog --colors --title "\Z7\ZbStay Near your PC!" --yes-label "Continue" --no-label "Exit" --yesno "\Z4This script cannot be run as root, but when needed you will be asked for your sudo password during the installation. This will give PACMAN the necessary permissions to install the software needed. So stay near the computer" 10 60 dialog --colors --title "\Z7\ZbStay Near your PC!" --yes-label "Continue" --no-label "Exit" --yesno "\Z4This script cannot be run as root, but when needed you will be asked for your sudo password during the installation. This will give PACMAN the necessary permissions to install the software needed. So stay near the computer" 10 60
} }
@ -70,7 +70,7 @@ recieve_keys || err "Error Recieving PGP key $_pgpkey"
sudo pacman --needed --ask 4 -Syu - < pkglist.txt sudo pacman --needed --ask 4 -Syu - < pkglist.txt
# Now that pikaur is installed, we can sync the AUR and install some needed packages (Nerd Fonts) from there. # Now that pikaur is installed, we can sync the AUR and install some needed packages (Nerd Fonts) from there.
pikaur -Syu nerd-fonts-source-code-pro nerd-fonts-fira-code pa-applet-git brave-bin pikaur -Syu nerd-fonts-source-code-pro nerd-fonts-fira-code librewolf-bin
echo "#########################################################" echo "#########################################################"
echo "## Copying the config files from /etc/cbsh into \$HOME ##" echo "## Copying the config files from /etc/cbsh into \$HOME ##"