zsh: Set password on first login
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
source /etc/profile
|
source /etc/profile
|
||||||
|
|
||||||
|
if [[ "$(passwd --status $USER | awk '{print $2}')" =~ ^(NP|L)$ ]] ; then
|
||||||
|
sudo passwd $USER
|
||||||
|
fi
|
||||||
|
|
||||||
_path=(
|
_path=(
|
||||||
"$HOME/bin"
|
"$HOME/bin"
|
||||||
"$HOME/.cargo/bin"
|
"$HOME/.cargo/bin"
|
||||||
|
|||||||
Reference in New Issue
Block a user