Skip to content

Commit

Permalink
Update frameworks/zsh4humans.zsh
Browse files Browse the repository at this point in the history
Disable prompt asking to change shell. Otherwise the GitHub Action fails
after the following output from zsh4humans:

    z4h: login shell isn't the same as this shell

      user         root
      login shell  /bin/sh
      this shell   /bin/zsh

    Change login shell of root to /bin/zsh?

      (y)  Yes. Recommended.
      (n)  No.

    Choice [yn]:
  • Loading branch information
ericbn committed Jul 12, 2024
1 parent 86aa237 commit da00f4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frameworks/zsh4humans.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ zstyle :z4h: start-tmux no
sed -i.bak -E 's|^(z4h install [^|]*)|\1 zimfw/git|' .zshrc
sed -i.bak -E 's|^(z4h load [^|]*)|\1 $Z4H/zimfw/git|' .zshrc
rm -r v${v}.tar.gz zsh4humans-${v} .zshrc.bak
# don't ask to change shell
mkdir -p .cache/zsh4humans/v5/stickycache
touch .cache/zsh4humans/v5/stickycache/no-chsh
# initialize zsh4humans
HOME=${PWD} zsh -ic 'exit' </dev/null

Expand Down

0 comments on commit da00f4f

Please sign in to comment.