Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
476bfdaf
Unverified
Commit
476bfdaf
authored
Mar 06, 2021
by
Igor Pečovnik
Committed by
GitHub
Mar 06, 2021
Browse files
Zsh fix (#139)
* ZSH fix * fixing menu too
parent
3bc9fd7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
476bfdaf
...
...
@@ -878,6 +878,12 @@ function jobs ()
"BASH"
)
if
!
is_package_manager_running
;
then
debconf-apt-progress
--
apt-get purge
-y
armbian-zsh
BASHLOCATION
=
$(
grep
/bash
$
/etc/shells |
tail
-1
)
# change shell back to bash for future users
sed
-i
"s|^SHELL=.*|SHELL=
${
BASHLOCATION
}
|"
/etc/default/useradd
sed
-i
"s|^DSHELL=.*|DSHELL=
${
BASHLOCATION
}
|"
/etc/adduser.conf
# change to BASH shell for root and all normal users
awk
-F
'[/:]'
'{if ($3 >= 1000 && $3 != 65534 || $3 == 0) print $1}'
/etc/passwd | xargs
-L1
chsh
-s
$(
grep
/bash
$
/etc/shells |
tail
-1
)
if
[[
-z
$scripted
]]
;
then
dialog
--backtitle
"
$BACKTITLE
"
--title
"Info"
--colors
--msgbox
"
\n
Your default shell was switched to:
\Z
1BASH
\Z
0
\n\n
Please logout & login from this session!"
9 47
fi
...
...
debian-config-submenu
View file @
476bfdaf
...
...
@@ -84,7 +84,7 @@ while true; do
LIST+
=(
"SSH"
"Reconfigure SSH daemon"
)
LIST+
=(
"Firmware"
"Run apt update & apt upgrade"
)
if
[[
"
$SHELL
"
!=
"/bin/
bash
"
]]
;
then
if
[[
"
$SHELL
"
!=
*
bash
]]
;
then
LIST+
=(
"BASH"
"Revert to stock BASH shell"
)
else
LIST+
=(
"ZSH"
"Install ZSH with plugins and tmux"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment