diff --git a/archx.sh b/archx.sh index 34360bc..1ba9eb6 100644 --- a/archx.sh +++ b/archx.sh @@ -470,7 +470,7 @@ postinstall_cli(){ chsh -s /bin/zsh $user chsh -s /bin/zsh root - wget share.zotan.services/prezto.sh -O /tmp/prezto.sh + wget ztn.sh/prezto.sh -O /tmp/prezto.sh sudo -u $user zsh /tmp/prezto.sh zsh /tmp/prezto.sh diff --git a/macx.sh b/macx.sh index 1f64279..45d477d 100644 --- a/macx.sh +++ b/macx.sh @@ -62,7 +62,7 @@ curl -L ztn.sh/macx-resources/zshrc >> ~/.zshrc echo "Installing prezto" rm ~/.zprofile -curl -L share.zotan.services/prezto.sh | zsh +curl -L ztn.sh/prezto.sh | zsh (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile #### @@ -76,4 +76,4 @@ echo echo "Please download and install them manually." echo echo "After that, please reboot to make sure everything is applied." -echo \ No newline at end of file +echo diff --git a/rocky.sh b/rocky.sh index ddbb8eb..efef6a1 100644 --- a/rocky.sh +++ b/rocky.sh @@ -1,10 +1,12 @@ #!/bin/bash -sudo dnf install epel-release wget git nano zsh -y +sudo dnf install epel-release wget git nano zsh sqlite -y sudo groupadd sudo sudo bash -c 'echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers' sudo useradd -md /home/zotan -s /bin/zsh -UG sudo zotan sudo -u zotan mkdir /home/zotan/.ssh sudo -u zotan wget -O /home/zotan/.ssh/authorized_keys share.zotan.services/authorized_keys sudo -u zotan bash -c 'curl ztn.sh/prezto.sh -L | zsh' -sudo -iu zotan + +# Don't automatically clear the terminal on logout +sudo sed -i '/^\s*clear\s*$/d' /etc/zlogout