diff --git a/larbs.sh b/larbs.sh index 1ee43df..50abc7a 100644 --- a/larbs.sh +++ b/larbs.sh @@ -14,11 +14,13 @@ while getopts ":a:r:b:p:h" o; do case "${o}" in *) printf "Invalid option: -%s\\n" "$OPTARG" && exit ;; esac done -[ -z "$dotfilesrepo" ] && dotfilesrepo="https://github.com/tiynger/.dotfiles.git" -[ -z "$progsfile" ] && progsfile="https://raw.githubusercontent.com/tiynger/LARBS/master/progs.csv" +[ -z "$dotfilesrepo" ] && dotfilesrepo="https://github.com/tiyn/.dotfiles.git" +[ -z "$progsfile" ] && progsfile="https://raw.githubusercontent.com/tiyn/LARBS/master/resources/progs.csv" [ -z "$aurhelper" ] && aurhelper="yay" [ -z "$repobranch" ] && repobranch="master" +bashhook="https://github.com/tiyn/LARBS/master/resources/bash-update.hook" + ### FUNCTIONS ### distro="arch" @@ -223,6 +225,10 @@ dbus-uuidgen > /var/lib/dbus/machine-id # Let LARBS know the WM it's supposed to run. chown -R "$name":wheel "/home/$name/.local" +# Set dash to /bin/sh +ln -sfT /bin/dash /bin/sh +curl $bashhook > /usr/share/libalpm/hooks/bash-update.hook + # This line, overwriting the `newperms` command above will allow the user to run # serveral important commands, `shutdown`, `reboot`, updating, etc. without a password. newperms "%wheel ALL=(ALL) ALL #LARBS diff --git a/resources/bash-update.hook b/resources/bash-update.hook new file mode 100644 index 0000000..ed08b69 --- /dev/null +++ b/resources/bash-update.hook @@ -0,0 +1,11 @@ +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = bash + +[Action] +Description = Re-pointing /bin/sh symlink to dash... +When = PostTransaction +Exec = /usr/bin/ln -sfT dash /usr/bin/sh +Depends = dash diff --git a/progs.csv b/resources/progs.csv similarity index 99% rename from progs.csv rename to resources/progs.csv index 28957f5..9cd9ecd 100644 --- a/progs.csv +++ b/resources/progs.csv @@ -52,6 +52,7 @@ G,https://github.com/tiynger/slock.git,is the screen lock.,, ,acpi,is an advanced Configuration and Power Interface.,, ,cmatrix,adding the hacker-aura.,, ,ctags,is adding scan functionality to files opened in vim using tagbar.,, +,dash,is a lightweight, fast, POSIX compliant shell.,, ,docx2txt,enables .docx file previews in vifm.,, ,firefox,is the browser to rule them all.,, A,htop-vim-git,provides system usage information and displays processes.,,