Fixed nms output and spaces to tabs

This commit is contained in:
Dionysus 2024-07-14 23:05:40 -04:00
parent 0d03ad1f72
commit de615ad1b9
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

18
setup
View File

@ -28,7 +28,7 @@ setup_root() {
echo "proc /proc proc defaults,hidepid=2 0 0" >> /etc/fstab && mount -o remount /proc echo "proc /proc proc defaults,hidepid=2 0 0" >> /etc/fstab && mount -o remount /proc
printf "set boldtext\nset minibar\nset nohelp\nset nowrap\nset quickblank\nset tabsize 4\nunbind ^J main\nset selectedcolor black,red\ninclude \"/usr/share/nano/*.nanorc\"\n" > /etc/nanorc printf "set boldtext\nset minibar\nset nohelp\nset nowrap\nset quickblank\nset tabsize 4\nunbind ^J main\nset selectedcolor black,red\ninclude \"/usr/share/nano/*.nanorc\"\n" > /etc/nanorc
printf "\nexport HISTFILE=/dev/null\nexport LESSHISTFILE=/dev/null\nexport PYTHONHISTFILE=/dev/null\n" >> /etc/profile printf "\nexport HISTFILE=/dev/null\nexport LESSHISTFILE=/dev/null\nexport PYTHONHISTFILE=/dev/null\n" >> /etc/profile
printf "#\!/bin/sh\nclear && (printf \"\" && printf \" E N T E R T H E V O I D\" && printf \"\") | nms -af red\n" > /etc/profile.d/motd.sh printf "#\!/bin/sh\nclear && (echo && printf \" E N T E R T H E V O I D\n" && echo) | nms -acf red\n" > /etc/profile.d/motd.sh
printf "\nFONT=\"ohsnap6x11r\"\n" >> /etc/rc.conf printf "\nFONT=\"ohsnap6x11r\"\n" >> /etc/rc.conf
printf "Defaults lecture = always\nDefaults lecture_file = /etc/sudoers.d/sudoers.lecture\nroot ALL=(ALL) ALL\n%%wheel ALL=(ALL) ALL\n" > /etc/sudoers printf "Defaults lecture = always\nDefaults lecture_file = /etc/sudoers.d/sudoers.lecture\nroot ALL=(ALL) ALL\n%%wheel ALL=(ALL) ALL\n" > /etc/sudoers
printf "\n\033[1m \033[32m\"Bee\" careful \033[34m__\n \033[32mwith sudo! \033[34m// \ \n \\\\\\_/ \033[33m//\n \033[35m''-.._.-''-.._.. \033[33m-(||)(')\n '''\033[0m\n" > /etc/sudoers.d/sudoers.lecture printf "\n\033[1m \033[32m\"Bee\" careful \033[34m__\n \033[32mwith sudo! \033[34m// \ \n \\\\\\_/ \033[33m//\n \033[35m''-.._.-''-.._.. \033[33m-(||)(')\n '''\033[0m\n" > /etc/sudoers.d/sudoers.lecture
@ -83,7 +83,7 @@ setup_packages() {
# Essentials # Essentials
xbps-install -y curl dropbear git jq progress rsync socklog-void tmux tor tree unzip zip xbps-install -y curl dropbear git jq progress rsync socklog-void tmux tor tree unzip zip
xbps-install -y bandwhich bpfmon glow gnupg2-scdaemon lxc incus incus-client incus-tools lazygit oath-toolkit xbps-install -y bandwhich bpfmon glow gnupg2-scdaemon lxc incus incus-client incus-tools lazygit oath-toolkit
#xbps-install -y earlyoom && ln -sfv /etc/sv/earlyoom /var/service/ #xbps-install -y earlyoom && ln -sfv /etc/sv/earlyoom /var/service/
@ -176,14 +176,12 @@ setup_builds() {
if [ "$#" -ne 1 ]; then [ "$#" -ne 1 ] && echo "usage: $0 [root|config|build|fun]" && exit 1
echo "usage: $0 [root|config|build|fun]" && exit 1
fi
case "$1" in case "$1" in
root) setup_root ;; root) setup_root ;;
config) setup_configs ;; config) setup_configs ;;
build) setup_builds ;; build) setup_builds ;;
fun) setup_fun ;; fun) setup_fun ;;
*) echo "usage: $0 [root|config|build|fun]\n"; exit 1 ;; *) echo "usage: $0 [root|config|build|fun]\n"; exit 1 ;;
esac esac