Alacritty: Default shell on macOS should use `login`

Created on 31 Jan 2018  路  3Comments  路  Source: alacritty/alacritty

Which operating system does the issue occur on?
MacOS 10.12.3

Default process for a shell on MacOS should use login -fp $USERNAME and not a direct invocation of /bin/bash because the user's environment gets set up differently with login. iTerm2.app and Console.app both use login and share a consistent environment for my user account but alacritty's environment differs with a buggy $PATH among other oddities.

H - macos enhancement

Most helpful comment

For anyone else running into this issue, add the following to your alacritty.yml in your config location (mine is ~/.config/alacritty/alacritty.yml):

shell:
  program: login
  args: ["-fp", "USERNAMEHERE"]

All 3 comments

For anyone else running into this issue, add the following to your alacritty.yml in your config location (mine is ~/.config/alacritty/alacritty.yml):

shell:
  program: login
  args: ["-fp", "USERNAMEHERE"]

Thank you for posting this. Alacritty was not lighting up my ~/.zsh/.zprofile file, but following your example I was able to get things working with:

shell:
  program: /usr/local/bin/zsh
  args:
    - --login

I think a good example of how this can be fixed in Alacritty can be seen in how it was fixed in kitty: https://github.com/kovidgoyal/kitty/issues/247

Was this page helpful?
0 / 5 - 0 ratings

Related issues

awalgarg picture awalgarg  路  3Comments

topaxi picture topaxi  路  3Comments

davidhewitt picture davidhewitt  路  3Comments

kekePower picture kekePower  路  3Comments

zacstewart picture zacstewart  路  3Comments