From 9a8909ca884b25b750669a0a37c38fb51598f008 Mon Sep 17 00:00:00 2001 From: bri <284789+b-@users.noreply.github.com> Date: Fri, 13 Oct 2023 10:13:14 -0400 Subject: [PATCH] Use `usermod` instead of `lchsh` in custom.just (#585) --- just/custom.just | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/just/custom.just b/just/custom.just index d8fd1f8e347..05eceece4a0 100644 --- a/just/custom.just +++ b/just/custom.just @@ -107,7 +107,8 @@ distrobox-universal: # Switch to the fish shell fish: - sudo lchsh $USER /usr/bin/fish + sudo usermod $USER --shell /usr/bin/fish + printf "${USER}'s shell is now %s." "$(cat /etc/passwd | grep ":$UID:" | cut '-d:' '-f7')" # Install recommended GNOME extensions gnome-extensions: @@ -155,7 +156,8 @@ nix-devbox-global: podmansh: sudo mkdir -p /etc/containers/systemd/users/${UID} sudo cp /usr/share/ublue-os/quadlets/podmansh.container /etc/containers/systemd/users/${UID}/podmansh.container - sudo lchsh $USER /usr/bin/podmansh + sudo usermod $USER --shell /usr/bin/podmansh + printf "${USER}'s shell is now %s." "$(cat /etc/passwd | grep ":$UID:" | cut '-d:' '-f7')" podman pull ghcr.io/ublue-os/ubuntu-toolbox:latest systemctl --user daemon-reload @@ -215,7 +217,8 @@ yafti: # Switch to the zsh shell zsh: - sudo lchsh $USER /usr/bin/zsh + sudo usermod $USER --shell /usr/bin/zsh + printf "${USER}'s shell is now %s." "$(cat /etc/passwd | grep ":$UID:" | cut '-d:' '-f7')" docker: sudo systemctl enable --now docker