This commit is contained in:
Laura Hausmann 2023-03-17 02:52:54 +01:00
parent dea32fe285
commit 0df83365bf
Signed by untrusted user: zotan
GPG Key ID: D044E84C5BE01605
3 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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
echo

View File

@ -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