From 0d3c6fa03f957ec03dc4c292d3f09c65d73c2bab Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 8 May 2025 18:44:03 -0500 Subject: making zshell the user's shell --- root_scripts/change_shell.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/root_scripts/change_shell.sh b/root_scripts/change_shell.sh index 2f7e55d..11a1d16 100755 --- a/root_scripts/change_shell.sh +++ b/root_scripts/change_shell.sh @@ -2,6 +2,16 @@ # Craig Jennings # changes shell for cjennings and installs mc -chsh -s /usr/local/bin/bash cjennings +# ensure root +if ! [ $(id -u) -eq 0 ] +then + echo "Must run as root. Exiting." + exit +fi -pkg install -y mc +# install zshell and change shell to it +pkg install -y zsh +chsh -s /usr/local/bin/zsh cjennings + +# misc +pkg install -y mc # depends on either bash or zsh -- cgit v1.2.3