zsh 没有作为登录 shell 启动

zsh 没有作为登录 shell 启动

运行 Debian 我已将其设置zsh为我的登录 shell,/etc/passwd并且 zsh 是允许的 shell 之一。

$ cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/bash
/usr/bin/bash
/bin/rbash
/usr/bin/rbash
/bin/dash
/usr/bin/dash
/bin/zsh
/usr/bin/zsh
$ id
uid=1000(re) gid=1000(re) groups=1000(re),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev),113(bluetooth),118(scanner)
$ grep re: /etc/passwd
re:x:1000:1000:xxxxXXXXX,,,:/home/re:/bin/zsh
$ echo $SHELL
/bin/zsh

尽管进行了这些设置,但每当我打开新控制台时,系统都会启动 bash shell。

$ ps -p $$
PID TTY          TIME CMD
4435 pts/1    00:00:00 bash

手动启动 zsh 不会出现任何问题。在第二台计算机上,我没有遇到这个问题,zsh 在所有新终端上都能完美启动。

相关内容