dotfiles
dotfiles copied to clipboard
[BUG] Switch shell script: `chsh` fails.
Describe the bug
chsh fails because, in the case of bash -> zsh switch, it takes as argoument which zsh, which returns /usr/sbin/zsh.
The problem is that the zsh path in sbin is not in /etc/shells.
Steps to reproduce
- Install ML4W with Dotfiles Installer.
- Execute
.config/ml4w/scripts/shell.sh - The script executes
chsh -s $(which zsh). -
which zshreturns/usr/sbin/zsh. -
/usr/sbin/zshis not listed in/etc/shells, sochshfails.
Expected behavior
chsh should take always /usr/bin/zsh as an argoument.
Screenshots
No response
Distribution
Arch Linux
If Other, specify
No response
Additional context
ML4W Version: Stable Release
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Thanks for testing. I will check.