holman / dotfiles

@holman does dotfiles
http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/
MIT License
7.33k stars 3.35k forks source link

zsh is not set to standard shell #239

Open andygrunwald opened 8 years ago

andygrunwald commented 8 years ago

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

chsh -s $(which zsh)

can do the job here

ricardosierra commented 8 years ago

+1

jeschkies commented 8 years ago

+1

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

jacobwgillespie commented 8 years ago

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.

jeschkies commented 8 years ago

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

jeschkies commented 8 years ago

Okay, the boot script actually runs with bash.