[C] Switch default shell to zsh

This commit is contained in:
user1 2023-01-23 23:12:30 +01:00
parent d855d1623a
commit 539c1331de
3 changed files with 5 additions and 3 deletions

View file

@ -119,7 +119,7 @@ function addusers() {
useruid=$((${useruid} + 1)) useruid=$((${useruid} + 1))
done done
useradd -m -g users -G wheel,audio,input,power,storage,video,sys,optical,adm,lp,scanner,sddm,kvm,fuse,autologin,network,wireshark,docker,libvirt,libvirtdbus -s /bin/bash --uid ${useruid} ${user} useradd -m -g users -G wheel,audio,input,power,storage,video,sys,optical,adm,lp,scanner,sddm,kvm,fuse,autologin,network,wireshark,docker,libvirt,libvirtdbus -s /usr/bin/zsh --uid ${useruid} ${user}
echo "${user}:${userpass}" | chpasswd echo "${user}:${userpass}" | chpasswd
mkdir -p /home/${user}/ mkdir -p /home/${user}/
userrechte userrechte
@ -432,8 +432,8 @@ cp /opt/${repo}/scripts/addusers.sh /usr/bin/addusers
chmod 755 /usr/bin/addusers chmod 755 /usr/bin/addusers
# set default shell # set default shell
chsh -s /bin/bash root chsh -s /usr/bin/zsh root
chsh -s /bin/bash ${user} chsh -s /usr/bin/zsh ${user}
# aurinstaller # aurinstaller
cp /opt/${repo}/scripts/aurinstall.sh /usr/bin/aurinstaller cp /opt/${repo}/scripts/aurinstall.sh /usr/bin/aurinstaller

View file

@ -1570,6 +1570,7 @@ fi
arch-chroot ${mountpoint} usermod -l "${user}" "user1" arch-chroot ${mountpoint} usermod -l "${user}" "user1"
arch-chroot ${mountpoint} usermod -d /home/"${user}" -m "${user}" arch-chroot ${mountpoint} usermod -d /home/"${user}" -m "${user}"
arch-chroot ${mountpoint} chfn -f "${name}" "${user}" arch-chroot ${mountpoint} chfn -f "${name}" "${user}"
arch-chroot ${mountpoint} chsh -s /usr/bin/zsh ${user}
if ! [ "${fastinstall}" == "y" ]; then if ! [ "${fastinstall}" == "y" ]; then
read -s -p "Please choose a passwort for you!!! " userpass read -s -p "Please choose a passwort for you!!! " userpass

View file

@ -2,6 +2,7 @@ dhcpcd nano vim vim-spell-de intel-ucode amd-ucode iwd lvm2
btrfs-progs ntfs-3g exfatprogs btrfs-progs ntfs-3g exfatprogs
arch-install-scripts squashfs-tools dosfstools libisoburn grub efibootmgr dosfstools gptfdisk cronie memtest86+ arch-install-scripts squashfs-tools dosfstools libisoburn grub efibootmgr dosfstools gptfdisk cronie memtest86+
acpid dbus avahi ntp fail2ban alsa-utils alsa-tools bash-completion acpid dbus avahi ntp fail2ban alsa-utils alsa-tools bash-completion
zsh zsh-autosuggestions zsh-completions zsh-history-substring-search zsh-lovers
pavucontrol pamixer wget pavucontrol pamixer wget
mesa-utils egl-wayland wofi mako fuzzel bemenu-wayland wayvnc xdg-desktop-portal-wlr slurp grim jq mesa-utils egl-wayland wofi mako fuzzel bemenu-wayland wayvnc xdg-desktop-portal-wlr slurp grim jq
remmina libvncserver spice-gtk freerdp gtk-vnc element-desktop trash-cli remmina libvncserver spice-gtk freerdp gtk-vnc element-desktop trash-cli