diff --git a/zsh/zprofile.j2 b/zsh/zprofile.j2 index 576e01f..0ae1b2a 100644 --- a/zsh/zprofile.j2 +++ b/zsh/zprofile.j2 @@ -1,5 +1,9 @@ source /etc/profile +if [[ "$(passwd --status $USER | awk '{print $2}')" =~ ^(NP|L)$ ]] ; then + sudo passwd $USER +fi + _path=( "$HOME/bin" "$HOME/.cargo/bin"