aboutsummaryrefslogtreecommitdiff
path: root/post_chroot.sh
diff options
context:
space:
mode:
authorawy <awy@tutamail.com>2024-08-21 14:04:47 +0300
committerawy <awy@tutamail.com>2024-08-21 14:04:47 +0300
commitcb63fac1c8ad3fe9f1f1470d6754b5ff57d90703 (patch)
treef79a5111c3b174e953ed49de85c2f99e1d941998 /post_chroot.sh
parent1ab16323eafe4b9a0697b92561ca5463fe8f5b3a (diff)
zsh
Diffstat (limited to 'post_chroot.sh')
-rwxr-xr-xpost_chroot.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/post_chroot.sh b/post_chroot.sh
index 7725289..de5ec2a 100755
--- a/post_chroot.sh
+++ b/post_chroot.sh
@@ -80,7 +80,7 @@ if [ "$_kernelflag" -eq 1 ]; then
fi
# use dash as sh
-pacman -Sy dash
+pacman -Sy dash zsh
ln -sfT dash /usr/bin/sh
mkdir -p /etc/pacman.d/hooks
cat <<EOL >> /etc/pacman.d/hooks/bash.hook
@@ -97,4 +97,6 @@ Exec = /usr/bin/ln -sfT dash /usr/bin/sh
Depends = dash
EOL
+chsh -s /bin/zsh $_username
+
rm /post_chroot.sh