pratham-setup: fix typos, handle pratham [not-]being a part of sudoers, remove the qomui package
This commit is contained in:
parent
5beca16da5
commit
0867da9ee7
|
@ -4,6 +4,9 @@
|
||||||
# INITIAL SETUP
|
# INITIAL SETUP
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
# for visudo
|
||||||
|
EDITOR=/usr/bin/vim
|
||||||
|
|
||||||
# set hostname
|
# set hostname
|
||||||
WHAT_IS_MY_HOSTNAME=$(cat /etc/hostname)
|
WHAT_IS_MY_HOSTNAME=$(cat /etc/hostname)
|
||||||
if [[ $WHAT_IS_MY_HOSTNAME != "vasudev" ]]; then
|
if [[ $WHAT_IS_MY_HOSTNAME != "vasudev" ]]; then
|
||||||
|
@ -61,7 +64,7 @@ popd
|
||||||
# check for an empty hostname in ~/.ssh/config
|
# check for an empty hostname in ~/.ssh/config
|
||||||
if [[ ! -f $HOME/.ssh/config ]]; then
|
if [[ ! -f $HOME/.ssh/config ]]; then
|
||||||
EDIT_SSH_CONF=true
|
EDIT_SSH_CONF=true
|
||||||
elif
|
else
|
||||||
CONTENTS_OF_SSH_CONF=$(grep -A 1 "git.thefossguy.com" ~/.ssh/config | tail -n 1 | rev)
|
CONTENTS_OF_SSH_CONF=$(grep -A 1 "git.thefossguy.com" ~/.ssh/config | tail -n 1 | rev)
|
||||||
|
|
||||||
if [[ "${CONTENTS_OF_SSH_CONF::1}" != "5" ]]; then
|
if [[ "${CONTENTS_OF_SSH_CONF::1}" != "5" ]]; then
|
||||||
|
@ -149,10 +152,16 @@ rsync \
|
||||||
# AUR-RELATED
|
# AUR-RELATED
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
# setup sudo access for pratham (required for makepkg)
|
||||||
|
/usr/bin/sudo -l -U pratham >/dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
doas visudo
|
||||||
|
fi
|
||||||
|
|
||||||
# build paru
|
# build paru
|
||||||
if command -v paru >/dev/null; then
|
if command -v paru >/dev/null; then
|
||||||
|
echo "paru is already installed"
|
||||||
|
else
|
||||||
# install necessary packages for installing \`paru\`
|
# install necessary packages for installing \`paru\`
|
||||||
doas pacman --sync --refresh --needed base-devel
|
doas pacman --sync --refresh --needed base-devel
|
||||||
|
|
||||||
|
@ -172,7 +181,7 @@ if command -v paru >/dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# AUR pkgs
|
# AUR pkgs
|
||||||
paru -S qomui noisetorch ssmtp
|
paru -S noisetorch ssmtp
|
||||||
#paru -S zfs-dkms
|
#paru -S zfs-dkms
|
||||||
|
|
||||||
# wayland-WM
|
# wayland-WM
|
||||||
|
@ -187,4 +196,4 @@ paru -S qomui noisetorch ssmtp
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
tput -x clear
|
tput -x clear
|
||||||
echo "vim-plug for nvim has been installed, please fetch the plugins using the \'`:PlugInstall\` command"
|
echo "vim-plug for nvim has been installed, please fetch the plugins using the \':PlugInstall\` command"
|
||||||
|
|
Loading…
Reference in New Issue