dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

zsh is not set to standard shell

Open andygrunwald opened this issue 9 years ago • 5 comments

If script/bootstrap is executed, zsh is not set as a standard shell.

chsh -s $(which zsh)

can do the job here

andygrunwald avatar May 21 '16 20:05 andygrunwald

+1

ricardosierra avatar Jun 03 '16 21:06 ricardosierra

+1

Is zsh actually a requirement for dotfiles? Some of my scripts assume it is.

jeschkies avatar Jun 28 '16 12:06 jeschkies

For these dotfiles, it is a requirement, yep.

I think there's an assumption that your shell is already set to zsh externally, as it's not quite as simple as the one chsh line. For me personally, I install zsh via Homebrew (brew install zsh) in order to stay up-to-date with the latest versions, and that installs zsh to /usr/local/bin/zsh. which zsh would correctly pull up the path, but chsh would not accept it as a shell because /usr/local/bin/zsh does not exist as a line in /etc/shells. So for me, I have to do the following to set up zsh:

$ brew install zsh
$ sudo sh -c 'echo /usr/local/bin/zsh >> /etc/shells' # or just edit the file in Atom or whatever, like I actually do
$ chsh -s $(which zsh)

Other OSs might have a different process / file location / etc. All that to say that might be one of the reasons the actual chsh isn't in this repo.

jacobwgillespie avatar Jun 28 '16 21:06 jacobwgillespie

A warning or even error at the beginning would be nice then.

jeschkies avatar Jun 29 '16 08:06 jeschkies

Okay, the boot script actually runs with bash.

jeschkies avatar Jul 01 '16 09:07 jeschkies