Skip to content

Commit

Permalink
Use usermod instead of lchsh in custom.just (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
b- authored Oct 13, 2023
1 parent 9b23bd1 commit 9a8909c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9a8909c

Please sign in to comment.