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 $user
chsh -s /bin/zsh root 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 sudo -u $user zsh /tmp/prezto.sh
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" echo "Installing prezto"
rm ~/.zprofile 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 (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile
#### ####

View file

@ -1,10 +1,12 @@
#!/bin/bash #!/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 groupadd sudo
sudo bash -c 'echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers' sudo bash -c 'echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
sudo useradd -md /home/zotan -s /bin/zsh -UG sudo zotan sudo useradd -md /home/zotan -s /bin/zsh -UG sudo zotan
sudo -u zotan mkdir /home/zotan/.ssh 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 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 -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